lighthouse icon indicating copy to clipboard operation
lighthouse copied to clipboard

Docs search always returns the current version

Open crThiago opened this issue 5 years ago • 2 comments

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

  1. Select a previous version
  2. Search for anything and click on the result

crThiago avatar May 30 '20 16:05 crThiago

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.

spawnia avatar May 30 '20 16:05 spawnia

Hello! I guess this is not possible, as configs are loaded on build time, and you can not override them on runtime.

miqo-srapionyan avatar Nov 04 '23 21:11 miqo-srapionyan