As Michael suggested in the comments it was a turbo link. So, what I did was adding data-no-turbolink=true
to the anchor like so: <%= link_to "Start »", app_path, data: { no_turbolink: true } %>
- that solved my problem.
Edit:
Better solution:
<body data-no-turbolink=true>