I'm trying to answer a question that requires manipulating the querystring parameters of a given page. I wanted to use the snippet editor on Stack Overflow to give an example, but the page that renders the code has a different URL than the page that hosts the editor. Is there a way to pass querystring parameters down from the editor to the page that the editor renders, so my code can use it in the example?
history.replaceState('', '', '?x=10&y=20')
so that subsequent users oflocation.search
will see the value you want.