phntxx / dashboard

:bar_chart: a nice and simple dashboard / landing page.
MIT License
951 stars 55 forks source link

Using the search bar results in a 404 #61

Closed ghost closed 2 years ago

ghost commented 2 years ago

Really liking the dashboard! Everything is great except I'm unable to get the search bar working with or without the prefixes. Upon searching, it will immediately result in 404 Not Found, nginx.

The URL also changes to /undefinedsearch

The search providers .json is the same as the one in the repo.

phntxx commented 2 years ago

Hi!

I just realized that this is due to a change i made in the search.json file.

Previously, the file was structured like this:

{
  "search": {
    "defaultProvider": "...",
    "providers": {
      ...
    }
  }
}

The method that reads the contents of this file now expects the file to be formatted like this:

{
  "defaultProvider": "...",
  "providers": {
    ...
  }
}

I am terribly sorry for the inconvenience and will try to communicate such changes better in the future.

Kind regards phntxx