cryostar Posted July 17, 2021 Share Posted July 17, 2021 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 More sharing options...
kp52 Posted July 18, 2021 Share Posted July 18, 2021 Try including the trailing slash for the page: <a href="/members/profile/?profile=1">Profile</a> Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now