gama-platform / gama-platform.github.io

Repository for the website of GAMA
https://gama-platform.github.io/
GNU General Public License v3.0
4 stars 2 forks source link

A search from within GAMA opens the website on the 1.9.2 version #172

Open AlexisDrogoul opened 1 year ago

AlexisDrogoul commented 1 year ago

Describe the bug Again a problem related to the management of doc versions : when searching for a term from within GAMA (upper right search field) and opening the doc in the internal web browser, the version displayed is 1.9.2 (again with the emojis, etc.).

To Reproduce Steps to reproduce the behavior:

  1. Run a search from within GAMA
  2. Click on any result
  3. see the result on the web page (and the next one when clicking on the result.

Image 2023-04-28 13-34-25

ws2 -  - Gama 2023-04-28 13-35-00

Expected behavior That GAMA opens the version of the doc corresponding to its version or that the default version returned when searching is the latest stable one

Additional context This coexistence, on the same site, of several versions of the doc generates in my opinion more problems than solutions to the problems it is supposed to solve. It is even more confusing when someone enters from the internal "welcome page" in GAMA and arrives (correctly) in ... GAMA 1.9.1.

ws2 -  - Gama 2023-04-28 13-41-26

I would (again) strongly suggest to completely separate the different versions of the doc in completely different subsites with their own search engine, etc. so that the "normal" one always corresponds to the current stable version and the other sites to the old and future ones. The switch from one to the other should not be so simple.

RoiArthurB commented 1 year ago

I think your issue comes from cookies.

You probably already visited the website before and left it on the "in development" (currently 1.9.2, previously 1.9.1) version. Then Eclipse/GAMA browser kept that info saved in cookies (local storage) and so you been on this version again now that you retried to connect. For the welcome page, we force the url and there's no possibility else than reaching the latest version ("problem" for users from previous version connecting to 1.9.1 regardless their gama).

The normal behavior for new users or people never been on the search page is to be on the latest doc (1.9.1)

To try my cookie theory, you can try to:

  1. Go on the website within gama
  2. Pick any version you like
  3. Close the browser tab
  4. Search something
  5. See if the search page is indeed on the version you picked on point 2

I'll search on my sife to see if it's possible to force the search version 🤔