Jump to content

Query strings removed


Recommended Posts

I was creating a session redirect for unauthorized visits.

if(!$user->isLoggedin()) $session->redirect('/members/login?redirectUrl='.$page->path(), false);

but what happens is that this query string is not present when it redirects to "members/login".

Additionally, since I was using LoginRegister (not Pro) for front-end logins, I have a separate profile page but the module requires that "profile=1" is appended in the query string. So I placed it in the anchor tag.

<a href="/members/profile?profile=1">Profile</a>

but the same happened - the query string is removed. But when I click on the "Edit Profile" button of LoginRegister the query string is preserved. What could be the cause of this?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...