twigphp / Twig

Twig, the flexible, fast, and secure template language for PHP
https://twig.symfony.com/
BSD 3-Clause "New" or "Revised" License
8.14k stars 1.25k forks source link

Documentation Website's version alert should link to different version, same topic #3580

Open sheanhoxie opened 2 years ago

sheanhoxie commented 2 years ago

Issue Looking up documentation for twig's include statement, & clicking the alert message "... Switch to the documentation for Twig 1.x, 2.x" link takes the user away from the topic to the documentation root. This happens on all documentation pages.

Expected When browsing a topic, and offered a link to switch to another version, one expects to be kept on topic where possible.

Actual All links point to their version's documentation root

Supporting info This alert is present at the top of all twig.symfony.com/doc documentation pages:

You are reading the documentation for Twig 3.x. Switch to the documentation for Twig 1.x. 2.x.

The "switch to" links offered for each version, always point to their version's documentation root:

Many like pages exist between versions

axel37 commented 1 month ago

Yes please ! Especially since many search engine queries point to older versions.

This always happens to me :