href issue - it is appending the entire url to it in IE
Hi All,
I am having issue with one of the "href" link in the home page which is written in Struts (JSP), but we are starting it in jQuery. we made wrote functions and load the home page, we have hardcoded the sub packages like this
window.location.href = /sub1/sub2/template#HomePage
In IE, what is happening is that it is appending the entire url to "href" link on the home page, like this
href="http://localhost:8080/sub1/sub2/template/helpPage"
but in Firefox and Chrome, it is coming like this, which is good.
href="helpPage"
I don't understand why this is happening.
Please let me know if anybody has experienced this before.
Thanks.