I have a logout button on my site that points to the logoutUrl.

While the logout works and ends the user session, the user is brought to a page with the URL similar to domain.tld/domain.tld/ where domain.tld is my test-server's domain.

Naturally, this results in a 404 since I don't have a template to render a matching URL.

Any idea how to fix this or what could be causing it?



So after a bit of trial an error, setting a protocol for the siteUrl in config/general.php fixed it!

Ex. I had 'siteUrl' => 'domain.tld' so I changed it to 'siteUrl' => '//domain.tld' and all is well.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.