Skip to content

Commit

Permalink
revert headtag
Browse files Browse the repository at this point in the history
  • Loading branch information
corlard3y committed Oct 9, 2024
1 parent da1a5d3 commit f38e69d
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -145,15 +145,18 @@ const config = {
type: 'text/javascript',
},
innerHTML: `
(function (l) {
if (l.search.startsWith('/')) {
var decoded = l.search
.slice(1) // Remove the leading '/'
.replace(/~and~/g, '&'); // Replace '~and~' with '&'
window.history.replaceState(null, null, l.pathname + decoded + l.hash);
}
})(window.location);
(function (l) {
if (l.search[1] === '/') {
var decoded = l.search
.slice(1)
.split('&')
.map(function (s) {
return s.replace(/~and~/g, '&');
})
.join('?');
window.history.replaceState(null, null, l.pathname.slice(0, -1) + decoded + l.hash);
}
})(window.location);
`,
},
],
Expand Down

0 comments on commit f38e69d

Please sign in to comment.