Skip to content

Conversation

Satariall
Copy link

Some URL's with relative protocol, such as, //example.com/whatever/ is not detects as external and
ajaxify try to load http://inteernal.site/example.com/whatever, which is incorrect.
These regulars expressions fix that and external links detect properly.

Detect code get from http://stackoverflow.com/questions/6238351/fastest-way-to-detect-external-urls and adaptive to ajaxify.

Worked well!

Some URL's with relative protocol, such as, `//example.com/whatever/` is not detects as external and
ajaxify try to load http://inteernal.site/example.com/whatever, which is incorrect.
These regulars expressions fix that and external links detect properly.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant