Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

CraigStanfield's avatar

login is creating a query string

My issue, if i am on a page like https://example.com/invoices and i have been logged out then after logging in the url is now https://example.com/invoices?%2Finvoices=

Is this a known issue? is there a way to prevent this query string and/or fix it? I did post a question on this on stackoverflow several months ago but nobody had any relevant ideas. My app is due to go onto a production environment next week and this is pretty much the only remaining issue!

I do realise that it has no impact on the functionality of my pages but it just feels dirty and unfinished...

thanks

Craig

0 likes
2 replies
mkcircles's avatar

How about you redirect to the login endpoint after the logout action?

CraigStanfield's avatar

@mkcircles, should this not just happen anyway? if i was on this page and logged out, when i login it does redirect but it has the query string in it! Am I the only person experiencing this? a reload does address this thats true but why is it doing it and is this the correct behaviour to append a query string or do I perhaps have another issue I'm overlooking?

Please or to participate in this conversation.