We have suddenly an issue with jQuery load function.
Let’s say we have an url of the view/page which is “www.domain.com/register” and inside that view we have scripts such as $('#div').load('messages/pixeltracker.htm');
before, it it always returns http://www.domain.com/messages/pixeltracker.htm it always ups one folder.
but now, it’s returning a wrong url http://www.domain.com/register/messages/pixeltracker.htm which obviously will return 404 error and upon debugging i’ve notice that I need to add ../ before messages/pixeltracker.htm something like
$('#div').load('../messages/pixeltracker.htm');
I’m just wondering if it’s a server or a browser issue?
I hope someone could explain it.
Regards
Were you hitting the page as http://www.domain.com/register/ before? If you always used the backslash at the end, the messages/pixeltracker.htm would work. Otherwise, it should not be correct.