After create/update via resource relation, redirect back to that resource and scroll the relations table into view. #5860
Unanswered
LiamKarlMitchell
asked this question in
Ideas & Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
We can define our own logic for redirection however, it does not seem easily possible to scroll back to where the user was previously viewing the page from such as the relation table.
If may also be nice if the create/update button could persist the viaRelation and viaRelationId etc query parameters getting them from referer url might not be best.
The code is simpler if can just pull them from
$request->query('viaResource').Something like this seems to work, but would not scroll down to where the user previously was.
And not sure about other issues that may arise from using parse_url and parse_str.
Perhaps this could be built-in as a configurable behaviour on the relation on the parent resource?
Beta Was this translation helpful? Give feedback.
All reactions