When 'Switch back to http pages when there are no matches' is selected and saved, configuration can no longer be changed or reset to default, as pressing save or reset button takes you to incorrect URL.

FYI, I am running drupal in a subdirectory of webroot (e.g. www.example.com/sub). When I press save / reset, it takes me to 'http://www.example.com/sub/sub/admin/settings/securepages'. There is one too many 'sub/' in URL.

Comments

castellan’s picture

Version: 4.7.x-1.x-dev » 5.x-1.1

This problem is present in the 5.x-1.1 release, as well. It's a big show-stopper.

ashtonium’s picture

Title: 'Switch back' causes error » 'Switch back' setting breaks sites installed on subdirectories

Confirmed, this is present in both the 4.7.x and 5.x versions of the module.

As mentioned above, the issue occurs when the site is installed at a subdirectory of the domain, and the 'switch back' option is set.

The effect is that all forms on secure pages (other than the login page, oddly enough) cannot be submitted. The URLs in the action="" attribute of all <form> tags on secured pages have the root directory duplicated (as noted above).

Forms on non-secured pages have valid action URL's, and all other links seem to have resolved correctly as well.

charliem’s picture

Any updates on this case. I am facing the a similar problem. I am running Drupal 5.1 in a sub directory to for testing before moving it production.

gordon’s picture

Version: 5.x-1.1 » 5.x-1.x-dev
Status: Active » Fixed

Fixed in the 5.x-1.x-dev stream.

Anonymous’s picture

Status: Fixed » Closed (fixed)