Fix cases when hash is missing or link is external
Fixes #120 as well.
Hi @davist11, Is it possible for you to merge this? Thank you!
@RajeebTheGreat I think this repository is not maintained anymore, but feel free to use my fork where this issue is fixed: https://github.com/mmiszy/jQuery-One-Page-Nav
This is the entire point of the filter option
How the filter option works remains unchanged, I only fixed a bug in it.
Moreover I fixed #120 and took care of the scenario where link might be external.
But what if someone is forced to use absolute URLs in their links?
I'm not sure what you mean by that? Clicking on an external link navigates to another website.
This has nothing to do with relative/absolute URLs. Absolute URLs work just fine as long as they're internal, not external.
For example, imagine your website address is http://davist11.co/. Any of the following hrefs are considered internal:
/dsadsa/dsadsa/dsadsaabc/defhttp://davist11.co/http://davist11.co/abchttp://davist11.co/das/das/das/
While these are considered external:
http://google.com/http://facebook.com/friends/http://blog.davist11.com/