Skip to content
This repository has been archived by the owner on Sep 25, 2021. It is now read-only.

Commit

Permalink
Ensure links with a hash are visitable.
Browse files Browse the repository at this point in the history
  • Loading branch information
domchristie committed Apr 26, 2017
1 parent a36b3d4 commit e2e07c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/turbolinks/location.coffee
Expand Up @@ -22,7 +22,7 @@ class Turbolinks.Location
@absoluteURL.split("/", 3).join("/")

getPath: ->
@absoluteURL.match(/\/\/[^/]*(\/[^?;]*)/)?[1] ? "/"
@requestURL.match(/\/\/[^/]*(\/[^?;]*)/)?[1] ? "/"

getPathComponents: ->
@getPath().split("/").slice(1)
Expand Down

0 comments on commit e2e07c9

Please sign in to comment.