I’m trying to redirect to a relative url, like this
setTimeout(window.location.pathname = '/help/fusion/index.php#3', 500);
But the # seems to cause a problem when being passed to the window.location.pathname. The error is
‘The requested URL /help/fusion/index.php#3 was not found on this server.’
but the url that the browser actually displays is localhost/help/fusion/index.php%233#1. Anybody know how to avoid this?
You can use the
window.locationto redirect in javascript and pass a function to hesetTimeOutfunction. Try this: