Closed proimage closed 10 months ago
This is currently not possible. What you could maybe do is use the reference in the url to the original page craft.app.request.getParam('ref')
, extract the slug
from that somehow and fetch an entry by slug in the template.
In the future I could maybe allow you to add more params to the url (besides ref
). That would allow you to pass the entry id, and then fetch it on the login page. But currently, the login page does not have any notion of the protected entry, except for the url it should try to login on.
Ok, no biggie, thanks for letting me know.
On the login page, is there a way to access what would have been the
entry
variable of the requested page?I've got a couple of reasons for wanting to do so: