conan-io / conan-io/docs

[bug] Sharing link to documentation from mobile Chrome drops version from the URL

Open
#4,305 1 comment 0 reactions 0 assignees View on GitHub
stage: triaging
Dominant language
C++
Stars
125
Forks
382
Avg merge
22h 39m
Merged PRs (30d)
21

Description

I noticed that if I use "share" tool in mobile Chrome (Android and iPadOS are affected at least) version part is removed from the final URL. E.g.:

When I do share from the page
```
https://docs.conan.io/2/ci_tutorial/project_setup.html
```
that will be ended as
```
https://docs.conan.io/ci_tutorial/project_setup.html
```
I.e. `2` part is removed from the URL. And I see 404 [Page Not Found](https://docs.conan.io/ci_tutorial/project_setup.html#page-not-found) error in result.

Similar behavior for legacy 1.x links. When I want to share link from the page `https://docs.conan.io/1/index.html` I will end up with `https://docs.conan.io/index.html` redirected to the `https://docs.conan.io/2/`. That's obviously not what I want to see.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.