redirection to wrong unsecured version

Created on 5 June 2014, over 10 years ago
Updated 26 November 2024, 27 days ago

My site has a custom user log in module, and every time that a user logs in successfully, it is redirected to the last page visited in the site, so in order to do that I am passing a query string to the log in page url.

I have installed the Secure Pages module to redirect to a SSL version of the log in page, but the intention is that once that the user is logged in, the redirection to the last visited page should be made to the non-secure version of the page.

My Secure Pages Configuration is as follow:

-Enable Secure Pages('Enabled' selected)
-Switch back to http pages when there are no matches(checked)
-Non-secure Base URL (http://example.com)
-Secure Base URL (https://secure.example.com)
*** Note here that secure and non-secure base url have different domains.
-Pages which will be secure ('Make secure only the listed pages' selected)
-Pages:
user
user/*
login
login/*
register
-Ignore pages:
user/anotherpage
-User roles(nothing checked)
-Secure forms:
user_login
user_login_block

My issue:
Once that users have successfully logged in, they are being redirected to the non-secure version of the secure domain. For instance if user is coming from the home page should be redirected to http://example.com/home, however is being redirected to http://secure.example.com/home (note here that is the secure domain, but without the 's' at the end of the 'http'), and from there any other link clicked will contain the same domain

If I paste https://secure.example.com/home in the browser it redirects correctly to http://example.com/home, only when coming from log in page does not work, any ideas on why this is happening?

πŸ’¬ Support request
Status

Closed: outdated

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States mariadiaz

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • πŸ‡ΊπŸ‡¦Ukraine AstonVictor

    I'm closing it because the issue was created a long time ago without any further steps.

    if you still need it then raise a new one.
    thanks

Production build 0.71.5 2024