Using the browsers' "Add to Home Screen" (A2HS) feature may not open the expected link due to the browsers trying to comply with the standard of Progressive Web Application (PWA). Try other approaches instead, like using app widgets or 3rd-party apps altogether (examples below).
Progressive Web Application (PWA), Manifest file, and Add to Home Screen (A2HS)
To put it simply, PWA is an advanced web app that follows some rules. One of them is having a manifest file.
In order to call a Web App a PWA, technically speaking it should have the following features: Secure contexts (HTTPS), one or more Service Workers, and a manifest file.
A2HS is a browser feature to "install" a web app based on the configuration in the manifest file, which is linked on the header tag.
<link rel="manifest" href="link_to_manifest_file">
One of the required fields in the manifest file is
start_url that will be loaded when opening the "app".
start_url member is a string that represents the start URL of the web application — the prefered URL that should be loaded when the user launches the web application (e.g., when the user taps on the web application's icon from a device's application menu or homescreen).
start_url is invalid, it may return the document URL instead (i.e. the exact URL when the page is added to the home screen). However, since the manifest file is configured by the web developer, it might be difficult for end-users to modify/override this value.
In short, when a user adds a web page to the home screen, the browser will check if there is a manifest file, and if there is, it will try to use its value.
Wikimedia (including Wikipedia, Gamepedia, and possibly other wikis) has a mobile front-end extension that will only add the manifest file to the mobile view with
start_url always pointing to the Main Page.
The manifest file:
<link rel="manifest" href="/w/api.php?action=webapp-manifest">
The content of the manifest file:
This is why adding the desktop version works (and depending on the browser's configuration, it will redirect to the mobile view automatically), but adding the mobile view always returns to the Main Page instead.
Weather Underground always sets the manifest file regardless if it is viewed on desktop or mobile.
The manifest file:
<link rel="manifest" href="bundle-next/manifest.webmanifest">
"start_url": "/", which is basically the domain itself.
Solutions and/or workarounds
Some sites only have a manifest file on mobile view, using desktop mode may mitigate this issue
Some automation apps may allow opening an exact URL. Tasker has "Browse URL" task and users can also add an app widget on the home screen as a shortcut to that task
Some 3rd-party apps can create a home screen shortcut to a URL
Changing user agent may work (e.g. by using XPrivacyLua as mentioned by user beeshyams in the chat room). According to the documentation,
start_url member is purely advisory, and a user agent may ignore it or allow the user to alter it at install time or afterwards.
(Idea, untested) strip the
<link rel="manifest" href="link_to_manifest_file"> tag (e.g. using "ad" blockers) from the HTML when the page is loaded.
83.0.4103.106on Android 10 on a Nokia 7.2 device)