In the securepages_match function, the $path_alias variable is only set if an ignore is entered. If there aren't any ignore paths entered, the $path_alias variable will never be set. The match section will only grab the path alias if the $path_alias variable is set, when it should be checking if it wasn't set by the ignore section of code.

As a workaround, you can add in a bogus ignore path and the url alias will be checked correctly.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

frankkessler’s picture

Status: Active » Needs review
FileSize
744 bytes

Patch attached

frankkessler’s picture

Priority: Major » Normal
rogical’s picture

Status: Needs review » 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