Maybe this is by design, I am no expert.

But when setting ignore page pattern for a path alias, it doesn't work as expected by me.

For example:

The page 'node/50' has a path alias 'beautifull/page'.
The pattern 'beautifull/*' is added to ignore pages, and not to secure pages.
The setting 'switch back to http pages' is set.

When I try to load 'https://domain/beautifull/page' it gets automaticly redirected to http. My expectation would be that it would load https because the pattern 'beautifull/*' is in ignore pages.

Maybe solution?
In secure_pages.module line 223 change the following:

  // Checks to see if the page matches the current settings.
  if ($ignore) {
    if (drupal_match_path($path, $ignore)) {                                            
      return $is_https ? 1 : 0;
    }   
  }

to

  // Checks to see if the page matches the current settings.
  if ($ignore) {
    if (drupal_match_path($path, $ignore) || drupal_match_path(drupal_get_path_alias($path), $ignore)) {                                            
      return $is_https ? 1 : 0;
    }   
  }

Comments

rogical’s picture

Issue summary: View changes
Status: Active » Closed (duplicate)

This is due to securepages doesn't check url alias while matching path.

I've uploaded a patch and tested works.
Duplicate with #2215085: Make compatible with URL Aliases