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.

Comments

dan.munn created an issue. See original summary.

dan.munn’s picture

Status: Active » Needs review
StatusFileSize
new2.03 KB
perignon’s picture

Thanks for the patch. Will get it committed ASAP.

  • Perignon committed 5cbe30d on 7.x-1.x authored by dan.munn
    Issue #2906195 by dan.munn: Module supports wildcarded paths but...
perignon’s picture

Status: Needs review » Fixed

Committed. Thanks!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.