Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FIX for detect relative protocol external links #33

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

FIX for detect relative protocol external links #33

wants to merge 1 commit into from

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