Describe the problem
From what I can tell, there's no way to reliably detect a redirect in client application code.
Describe the proposed solution
Ideally there'd be a way to detect a redirect, either as a hook or maybe even as a piece of the data included in the Navigation type.
Alternatives considered
I looked to see if this data was available in the navigating type from $app/state, checked to see if it was available in client hooks, and tried to see if I could just use document.referrer, to no avail.
Importance
would make my life easier
Additional Information
No response
Describe the problem
From what I can tell, there's no way to reliably detect a redirect in client application code.
Describe the proposed solution
Ideally there'd be a way to detect a redirect, either as a hook or maybe even as a piece of the data included in the
Navigationtype.Alternatives considered
I looked to see if this data was available in the
navigatingtype from$app/state, checked to see if it was available in client hooks, and tried to see if I could just usedocument.referrer, to no avail.Importance
would make my life easier
Additional Information
No response