is there any actual best practice for restricted pages, login and redirects?
I found a lot of examples but all for older TYPO3 / felogin /.... versions (without site configuration)
I have the following scenario:
I have a several restricted pages and one login page (felogin)
I want to be able to deep link (e.g. send per Mail) to restricted pages - if the user is not logged in, the login form should be displayed - after successful login/registration the deep linked page should be displayed.
I use TYPO3 9.5 and in the site configuration I added 403 handling to display content of my login page.
This step works fine - the login page is shown.
I configured referrer and GET/POST redirection in the felogin plugin but these are not working.
Does anyone have an example how I could redirect to the original called (restricted) page after successful login/registration?
Thank you
Christian
For GET/POST redirection you need the URL-parameter
&return_url=. Maybe you could try to rewrite the GET-params in your 403-handler to include that. That might be gold.This is how I do it: (login page has
uid=81)<f:link.page pageUid="81" title="Logout" additionalParams="{logintype: 'logout'}">...</f:link.page>Pros:
Cons:
So I am not 100% happy with it. Let's gather best practice examples here. Feedback welcome.