Skip to content

API calls for oeo-search are always against openenergyplatform.org #2292

@ebroda

Description

@ebroda

Description of the issue

There are three calls in the source, where the endpoint /api/oeo-search is called. All these three calls are not relative, but use the whole url: https://openenergyplatform.org/api/oeo-search?query=" + input;

This is fine on the main instance, but a problem on other instances, additionally, if these use a different or extended oeo.

Steps to Reproduce

  1. https://github.com/search?q=repo%3AOpenEnergyPlatform%2Foeplatform+api%2Foeo-search&type=code

Ideas of solution

Make calls relative, I'll add a PR just afterward.

Context and Environment

  • Version used: current
  • Operating system: not relevant
  • Environment setup and (python) version: not relevant

Workflow checklist

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions