Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Go Back button from belongs_to record #3546

Open
4 of 11 tasks
johnvtroy opened this issue Dec 19, 2024 · 2 comments
Open
4 of 11 tasks

Fix Go Back button from belongs_to record #3546

johnvtroy opened this issue Dec 19, 2024 · 2 comments
Labels
Bug Something isn't working

Comments

@johnvtroy
Copy link

johnvtroy commented Dec 19, 2024

Describe the bug

Can the Go Back button after clicking on a belongs_to record go back to where it was opened from instead of the resource index page

Related to #3475

Reproduction repository for the bug

Steps to use in the reproduction repository

Steps to reproduce the behavior:

  1. Click on course links
  2. Click on Course
  3. Click on Go Back
  4. Goes to Course List

Expected behavior & Actual behavior

Should go back to Course Links page

System configuration

Avo version: 3.15.4

Rails version: 7.2.2

Ruby version: 3.3.1

License type:

  • Community
  • Pro
  • Advanced

Are you using Avo monkey patches, overriding views or view components?

  • Yes. If so, please post code samples.
  • No

Screenshots or screen recordings

19.12.2024_15.20.43_REC.mp4

Additional context

Impact

  • High impact (It makes my app un-usable.)
  • Medium impact (I'm annoyed, but I'll live.)
  • Low impact (It's really a tiny thing that I could live with.)

Urgency

  • High urgency (I can't continue development without it.)
  • Medium urgency (I found a workaround, but I'd love to have it fixed.)
  • Low urgency (It can wait. I just wanted you to know about it.)
Copy link
Contributor

github-actions bot commented Jan 4, 2025

This issue has been marked as stale because there was no activity for the past 15 days.

@github-actions github-actions bot added the Stale label Jan 4, 2025
@Paul-Bob Paul-Bob added Bug Something isn't working and removed Stale labels Jan 6, 2025
@Paul-Bob Paul-Bob moved this to To Do in Issues Jan 6, 2025
@Paul-Bob Paul-Bob moved this from To Do to Next up in Issues Jan 15, 2025
@Paul-Bob
Copy link
Contributor

We discussed a approach that leverages JavaScript to save the current URL in the session. Later, when handling the back button functionality with an additional JavaScript implementation, the session can be queried for a stored URL. If a value is found, it can be used directly, bypassing the need to recompute the back path from the existing parameters.

This approach is part of our roadmap.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
Status: Next up
Development

No branches or pull requests

2 participants