Lets say i am at following page on the website:
http://example.com/account/ask
I am trying to redirect to http://example.com/account/send?id=1 on button click.
The below statement is working in ie10, firefox and chrome. But it is not working in ie8.
<script language="javascript">window.location="account/send?id=<?=$qid; ?>";</script>
If the browser is ie8 it goes like this:
http://example.com/account/account/send?id=1
How can i fix this? Or is there a better way to do this?
1 Answer