lighthouse
lighthouse copied to clipboard
Docs search always returns the current version
Describe the bug In the documentation, the search always returns the current version of the lighthouse (4.12), even if it is changed to the previous version
Expected behavior/Solution
By default the search returns the current version, but it must return the search for the version selected by the visitor
Steps to reproduce
- Select a previous version
- Search for anything and click on the result
Search is configured here: https://github.com/nuwave/lighthouse/blob/7dae89a80891290e453e184bd32b24955c1a7ab2/docs/.vuepress/config.js#L65-L69
I don't know if we can grab a hold of the currently displayed version in there. Feel free to give it a try and add a PR.
Hello! I guess this is not possible, as configs are loaded on build time, and you can not override them on runtime.