Steps to replicate the issue (include links if applicable):
- While logged into Wikifunctions, select Edit on any Z-Object e.g. Z21000
- Make any edit and submit
What happens?:
Observe you are redirected to e.g. https://www.wikifunctions.org/view/en/Z21000?success=true. The presence of the queryparam is checked to show a "Your changes have been successfully published!" toast, but the handler for that doesn't also adjust the page URI, meaning the toast will reappear if you navigate away and then go Back. The queryparam also pollutes browser autocomplete.
What should have happened instead?:
Something like
const queryparams = new URLSearchParams(location.search); queryparams.delete("success"); history.replaceState(null, "", location.pathname + (queryparams.size === 0 ? "" : `?${queryparams}`) + location.hash);
Software version (on Special:Version page; skip for WMF-hosted wikis like Wikipedia):
Wikifunctions.org
Other information (browser name/version, screenshots, etc.):
FF 135 or Chromium 133, NixOS