Pattern matching not working with subpathauto

Created on 5 February 2025, 5 months ago

Problem/Motivation

If you use subpathauto and configure r4032login to redirect on paths like /node/*/* it does not redirect for the node edit route.

Steps to reproduce

TBA

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Active

Version

2.0

Component

Code

Created by

πŸ‡¦πŸ‡ΊAustralia mstrelan

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

  • Issue created by @mstrelan
  • πŸ‡¦πŸ‡ΊAustralia mstrelan
  • πŸ‡¦πŸ‡ΊAustralia mstrelan

    Didn't mean to change the status. It's probably not as simple as the proposed resolution. We need to do something like this:

    $currentPath = \Drupal::service('path_processor_subpathauto')->processInbound($currentPath, $request);

    But obviously that doesn't make sense to do here, so I'm wondering if there is a generic way to handle this?

  • Merge request !23Path processor β†’ (Open) created by mstrelan
  • πŸ‡¦πŸ‡ΊAustralia mstrelan

    Ah, we can just use the path_processor_manager service that will run for all path processors. Have put up an MR. Obviously needs test coverage. May need to consider BC concerns. May need config to opt in or out.

  • Status changed to Needs work about 13 hours ago
  • πŸ‡ΊπŸ‡ΈUnited States brockfanning

    Hi all, just a note that we are trying out this module, and we also use subpathauto, and so far we haven't noticed any conflicts. I'm seeing the expected redirect happen on the node edit routes. I wonder if there is something in our custom code causing this, but just thought I'd mention it, in case it has resolved itself.

Production build 0.71.5 2024