I'm writing some Javascript code and I'm trying to change the current page as the result of the user clicking a button. I'm using this snippet of code:
window.location.replace("/customer/order/12");
containing the relative URL within my site that I want to navigate to. When this code runs (looking at it in Firebug), the url string looks correct, but the page just does a refresh to what it's currently on. Looking at the headers with HttpFox the first thing I see is a result of (Aborted), Type: NS_BINDING_ABORTED. However, if I issue this command:
window.location.replace("/customer/order/12");
from Firebug, the browser goes to the correct url that I specified ("/customer/order/12").
Can anyone help me determine what's going wrong here?
Thanks in advance! Doug