Issue #2354397 follow-up: drupal_valid_path is too strict for our needs here