avo
avo copied to clipboard
Wrong back button path when trying to create from a has_many association
Describe the bug
Steps to Reproduce
Steps to reproduce the behavior:
- Go to a project
- Click on create comment
- 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

Impact
- [ ] High impact
- [ ] Medium impact
- [x] Low impact