Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

logout causes 404 #16

Open
rustykowski opened this issue Mar 20, 2023 · 3 comments
Open

logout causes 404 #16

rustykowski opened this issue Mar 20, 2023 · 3 comments

Comments

@rustykowski
Copy link

regardless of whether a redirect page is defined or the option "Zur zuletzt besuchten Seite" is activated, the logout redirects to an invalid URL. For me, a double slash appears in the URL directly after the domain name:
https://europeanjusticeforum.org//members/materials/

@rustykowski
Copy link
Author

I have now modified the mod_token_login.html5 template:
$this->targetPath = str_replace('//', '/', $this->targetPath);

@richardhj
Copy link
Owner

What is your current Contao version?

Can you make the following change in the src/Module/TokenLogin.php line 120?

                    ->setParameter(4, ltrim($request->request->get('_target_path'), '/'))

@rustykowski
Copy link
Author

My site is running on Contao 4.13.18.

Although i changed line 120, targetPath still starts with 2 slashes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants