mirror of
https://github.com/safing/web
synced 2025-09-01 18:49:06 +00:00
Fix removal of source query parameter
This commit is contained in:
parent
f8e36435e1
commit
a83f12219b
1 changed files with 6 additions and 4 deletions
|
@ -17,8 +17,10 @@
|
||||||
Here are some keywords, so that everyone who is curious will find this code snippet faster:
|
Here are some keywords, so that everyone who is curious will find this code snippet faster:
|
||||||
plausible, analysis, analytics, campaign, tracking, query, hash, URL, #disabled?source=
|
plausible, analysis, analytics, campaign, tracking, query, hash, URL, #disabled?source=
|
||||||
-->
|
-->
|
||||||
<script defer>
|
<script>
|
||||||
if (document.location.search !== "") {
|
document.addEventListener('DOMContentLoaded', (event) => {
|
||||||
window.history.replaceState({}, document.title, document.location.pathname + "#disabled" + document.location.search);
|
if (document.location.search !== "") {
|
||||||
}
|
window.history.replaceState({}, document.title, document.location.pathname + "#disabled" + document.location.search);
|
||||||
|
}
|
||||||
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Add table
Reference in a new issue