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

Back button gets stuck in a loop #254

Open
jdudley1123 opened this issue Apr 8, 2020 · 0 comments
Open

Back button gets stuck in a loop #254

jdudley1123 opened this issue Apr 8, 2020 · 0 comments
Assignees
Labels
bug Something isn't working wontfix This will not be worked on

Comments

@jdudley1123
Copy link
Member

jdudley1123 commented Apr 8, 2020

The back button on offers#show doesn't work once you click on the booking button. Trying to go back from support_requests#new to offers#show works, but hitting back again returns the user to support_requests#new rather than topics#show.

This is because rather than a fixed link we use :back which returns the user to the previous page viewed.

<p class="mb-6"><%= link_to '‹ Back', :back, class: 'underline' %></p>

@jdudley1123 jdudley1123 added the bug Something isn't working label Apr 8, 2020
@jdudley1123 jdudley1123 self-assigned this Apr 8, 2020
jdudley1123 added a commit that referenced this issue Apr 8, 2020
Addresses #254

We now store the previous URL if coming from a topic page and use that for the back button link.
@jdudley1123 jdudley1123 mentioned this issue Apr 8, 2020
@suninthesky suninthesky added the wontfix This will not be worked on label May 11, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants