phoenix_live_view
phoenix_live_view copied to clipboard
Send referring URL on live redirect as param
question: Would it make sense to send the referrer in connect_params
?
I ask because historically params have been for path params, query params, and body params. Given that we send the connect params on each join, I wondered if it might make sense to inject the url on live redirect and use Document.referrer
on the initial join.
Referrer is trickier because we may want to use it in both live_redirect and live_patch? 🤔
Good point! Any concerns about clobbering user-land params? Maybe we call it __referrer
or something to attempt to avoid collisions?
Yeah we'll underscore it like _target
and document
Already implemented some time ago as _live_referer