Skip to content

Commit

Permalink
fix URL encoding for #
Browse files Browse the repository at this point in the history
  • Loading branch information
guybedford committed Aug 8, 2015
1 parent def97e2 commit 627fee2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/paths.js
Expand Up @@ -12,6 +12,10 @@ hook('normalize', function(normalize) {
if (this.has(normalized))
return normalized;

// percent encode just '#' in urls
if (isBrowser)
normalized = normalized.replace(/#/g, '%23');

if (normalized.match(absURLRegEx)) {
// defaultJSExtensions backwards compatibility
if (this.defaultJSExtensions && normalized.substr(normalized.length - 3, 3) != '.js')
Expand Down

0 comments on commit 627fee2

Please sign in to comment.