问题描述:

I'm using felogin - to get it to work I set it up in TypoScript in my root template:

plugin.tx_felogin_pi1 {

storagePid = 40,38,36,35,51

showForgotPasswordLink = 1

redirectMode = groupLogin,userLogin,login,loginError

redirectPageLogout = 6

...

It works fine, except when I try to logout while being on a page with restricted access because then it tries to find that restricted-page and for those cases I set up the install tool to redirect it to a "Page not found" template.

I noticed the logout-form action always points to the page ID I'm currently on:

<form action="index.php?id=49" target="_top" method="post">

so that's not what I want...I would like it to always be action="index.php?id=6" but my redirectPageLogout = 6 line didn't manage to change it.

Anyone an idea how can I change this?

In the felogin html template there's just ###ACTION_URI### and idk where it gets that from in the logout-form but I wanna play by the rules and not change it in the template directly...unless there's no other way.

网友答案:

You need to have access to a login-/logout-plugin after your logout is processed to get the forwarding working.
So if your logout plugin is on a page which is only invisible for logged in user. the logout is processed, but your redirect can't be processed (the default-handling of TYPO3 takes over and throws you to a page which is accessable). The same occurs if only the plugin itself is only visible for logged in users.

if you target the logout form directly to a page with a plugin visible for all, first the logout and secondly the redirect can be processed always.

相关阅读:
Top