Skip to content

Commit

Permalink
Merge pull request #1780 from nippur72/hash-urls
Browse files Browse the repository at this point in the history
Fixes #1757, do not resolve hash-only urls used for routing
  • Loading branch information
dfreedm committed Jun 8, 2015
2 parents 21fad5f + a2e2a11 commit ac90bb6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/lib/resolve-url.html
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@
}

function resolve(url, ownerDocument) {
// do not resolve '#' links, they are used for routing
if (url && url[0] === '#') {
return url;
}
var resolver = getUrlResolver(ownerDocument);
resolver.href = url;
return resolver.href || url;
Expand Down Expand Up @@ -79,4 +83,4 @@

})();

</script>
</script>

0 comments on commit ac90bb6

Please sign in to comment.