vojtech-dobes / nette.ajax.js

Flexible AJAX for Nette Framework. Supports snippets, redirects etc.
https://componette.org/vojtech-dobes/nette.ajax.js/
MIT License
149 stars 85 forks source link

IE11 bug when absolute URL is used #163

Open zipper opened 5 years ago

zipper commented 5 years ago

When absolute URL is used on AJAX link, there is new URL() used, which is not supported in IE11.

More over, when the URL is parsed, the regular expression below doesn't make any sense (or does it?):

So in my opinion, the correct condition should be if pathname from current location is the same as in parsedUrl, search is the same and hash is specified in parsedUrl. If so, return false, otherwise return true. Is that correct or am I missing something?

zipper commented 5 years ago

I believe I've solved this by PR https://github.com/vojtech-dobes/nette.ajax.js/pull/164.