Is there a way to get the new page url at startup window.popstate?
window.popstate
window.onpopstate(function (){ newPageUrl = //get the new page URL })
Use this
window.onpopstate(function (){ newPageUrl = location.href; })
Source: https://habr.com/ru/post/1654651/More articles:FFMPEG reconnects input if error - ffmpegSelect the first device from paired devices - androidОбновить строку времени даты в Javascript для соответствия текущему часовому поясу с помощью MomentJS - javascriptSwift 3 Value of type "Any?" has no member object '- iosOpenCV - view a gray or monochrome image with alpha channel - pythonOpenCV: loading an image with an alpha channel, but with a depth of 8 bits - c ++How do you flip each dimension in a NumPy array sequentially? - pythonFind the nth string instance in Notepad ++ - regexnpm: module.js: 457 throw err; Error: cannot find "npmlog" module on mac using brew - node.jsSpring Confirm list of strings for non-empty elements - javaAll Articles