avo icon indicating copy to clipboard operation
avo copied to clipboard

Wrong back button path when trying to create from a has_many association

Open adrianthedev opened this issue 3 years ago • 0 comments

Describe the bug

Steps to Reproduce

Steps to reproduce the behavior:

  1. Go to a project
  2. Click on create comment
  3. Click on back

Expected behavior & Actual behavior

It should redirect to the project show page but it redirect to the comments page.

Approach

The back link should take into account the via_relation_class and via_resource_id params to generate the proper link.

System configuration

Avo version:

Rails version:

Ruby version:

License type:

  • [x] Community
  • [x] Pro

Screenshots

CleanShot 2022-08-01 at 22 25 20

Impact

  • [ ] High impact
  • [ ] Medium impact
  • [x] Low impact

adrianthedev avatar Aug 01 '22 19:08 adrianthedev