Wrong URL appending once user refirect to edit page after login

akash pandey Posted in Technical Support 6 years ago

I am facing issue where my prod site URL is appneding when first time user is redirecting to edit profile page after login.

  1. First image shows "https://www.bjsbuzz.com/" appending in between.
  2. Actual URL which comes after hitting back buttonenter image description here
Replies
German Michael Zülsdorff Replied 6 years ago

Ok, I could reproduce the issue on https://www.bjsresume.in

Hence, my first idea would be to verify that there's no hard-coded https://www.bjsbuzz.com somewhere inside your stage site code this way:

grep -Ril "https://www.bjsbuzz.com" /mnt/BLOCKSTORAGE/home/189686.cloudwaysapps.com/jwrvtzppru/public_html/html

This would output any file name in your installation directory if https://www.bjsbuzz.com has been found.

in Akash pandey Replied 6 years ago

I am facing issue with localhost and Stage site (www.bjsresume.in). In Prod (www.bjsbuzz.com) everthing is working fine so requesting you to check on stage URL i.e "www.bjsresume.in"

German Michael Zülsdorff Replied 6 years ago

I'm sorry, but I cannot reproduce your problem.

So everything's working as expected!

in Akash pandey Replied 6 years ago

Thanks for reply, Actually I have three development environment .

  1. Localhost for local development (Screenshot given of localhost)
  2. www.bjsresume.in for staging (Development/Testing)
  3. www.bjsbuzz.com (Prod/Live/Final)

Now the issue is when user login after verifying from mail link they are redirecting to edit profile page where they need to fill out the remaining details but the issue is 404 page is coming due to prod URL i.e www.bjsbuzz.com is appending in between "https://www.bjsbuzz.com/u/akki12345/edit".">https://www.bjsresume.in/https://www.bjsbuzz.com/u/akki12345/edit".

enter image description here

Previous image was from localhost and this is from staging server.

This is strange where PROD URL is appending in between profile page URL.

German Michael Zülsdorff Replied 6 years ago

Maybe the documentation is a little misleading ...

So, if your site's base URL is

https://www.bjsbuzz.com/

and you want the first-time landing page to be the member's account settings page, you have to configure Firsttime Login like

https://www.bjsbuzz.com/u/[USERNAME]/edit

There's no localhost involved in any case.

in Akash pandey Replied 6 years ago