Problem
Whilst the module supports upon loading paths the concept of matching those with wildcard (asterisk) the submission validation for the path edit form results in the ability to save paths with aforementioned wildcards. As such if I wanted to use the path news/*, this cannot currently be achieved.
Solution
The validation should be adapted for paths that contain a wildcard, as they will neither be a valid URL (when checked with drupal_valid_path) nor will they match a source (as per drupal_lookup_path). One such aproach might be to allow the validation to be bypassed in a situation where the URL is not external, but also contains a wildcard.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | facebook_tracking_pixel-wildcard-in-path-2906195-2.patch | 2.03 KB | dan.munn |
Comments
Comment #2
dan.munn commentedComment #3
perignon commentedThanks for the patch. Will get it committed ASAP.
Comment #5
perignon commentedCommitted. Thanks!