Skip to content

Commit

Permalink
Frontend: Ugly URL hack for fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Raymonf committed Mar 1, 2020
1 parent 6f9fdeb commit 61423b3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/javascript/app/app.vue
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
const url = new URL(target.href)
const to = url.pathname
if (window.location.pathname !== to && event.preventDefault) {
if (window.location.pathname !== to && target.href.indexOf("/users/", 0) === -1 && event.preventDefault) {
event.preventDefault()
this.$router.push(to)
}
Expand Down
2 changes: 1 addition & 1 deletion app/javascript/app/views/home/Index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
Create Location
</router-link>
<span v-else>
<a href="/user/sign_in">Log in</a> to create a location.
<a href="/users/sign_in">Log in</a> to create a location.
</span>
</p>

Expand Down

0 comments on commit 61423b3

Please sign in to comment.