Improve support for anchor tag in URL
An anchor tag/hash in a URL is typically used to direct the visitor to another section on the page. If the URL also happens to contain query parameters, the anchor tag should always come last.
As far as I'm aware the only way we can add an anchor tag is by appending it to the URL in mwreturn
. Doing so though will result in a duplicate hash in the URL, both before and after the query paremeters, as demonstrated here:
https://nw-wsform.wikibase.nl/Form_hash_test
We need a way to support anchor tags. Either by manipulating the string received through mwreturn
(are we halfway there?), or perhaps by adding a new form parameter, maybe mwanchor
or mwhash
.