I am curious: Is there a possibility to change the URL query parameters when navigating from one view to another in a generical fashion?
What's my use case? I would like to append a query parameter "referrer" to the URL when navigating from view A to view C. This should also be done when navigating from view B to C. Once view C is open, there is some action that should return to the previous view. This "previous view" information could then be determined by "referrer" URL query parameter. For concrete example this is already working.
Moreover, I would like to generify the behavior with some annotations on view classes. E.g. view A and B are annotated with my @ReferrerSource
and view C with my @ReferrerTarget
annotation. So every time when navigation takes place in my application I would like to consider these view annotations and add the "referrer" URL query parameter on demand.
Is this even possible?