Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.
Comment | File | Size | Author |
---|---|---|---|
#1 | securepages-correct_match_with_path_alias-2195151-1.patch | 744 bytes | frankkessler |
Comments
Comment #1
frankkessler CreditAttribution: frankkessler commentedPatch attached
Comment #2
frankkessler CreditAttribution: frankkessler commentedComment #3
rogical CreditAttribution: rogical commentedThis 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