The code below works well. Here is my problem: redirecting window urls, but the source url is not registered in my browser history.
For example, if I find "http://example.com/page1", the browser is redirected to "http://example.com/test", as it should be. However, I need the original visitor url ("http://example.com/page1") so that it appears in my browser history so that I can call it in another function.
In any case, in order to get the original URL that I visited in order to go into my browser history before redirecting?
<script type="text/javascript"> $(document).ready(function(){ if (window.location =="http://example.com/home") {</script>
user1546779
source share