Ticket #6034 (closed bug: invalid)
getScript doesn't always respect the base tag
|Reported by:||bhasden||Owned by:|
I've got a website with the <base> tag defined as the website root directory, for example: http://www.example.com/myWebsite/.
In IE8 when I use $.getScript('path/to/script.js') jQuery appropriately requests and loads http://www.example.com/myWebsite/path/to/script.js no matter where the current page is located in the website.
On the other hand, in FF 3.5.7 the request for 'path/to/script.js' is relative to the current page. For example if I'm viewing http://www.example.com/myWebsite/post/345/ the getScript call will request http://www.example.com/myWebsite/post/345/path/to/script.js.
I understand this may not be a bug with jQuery but since jQuery usualy insulates me from these sort of issues it would be nice if jQuery found a way of forcing getScript to behave one way or the other.