Problem/Motivation

Views displays support custom URLs, and when those displays have exposed forms, the form's action will be the display's custom URL. So far, so good.

Unfortunately, this breaks if Drupal is running in a subdirectory. For example, let's say you have a view whose custom URL is /search, and Drupal is running at https://example.com/foo. The exposed form's action will be /search, which will be a 404.

Proposed resolution

The exposed form needs to actually use URL processing, probably converting /whatever to base:/whatever. Since CI runs Drupal in a subdirectory, this points to a clear gap in test coverage.

User interface changes

None.

Introduced terminology

None.

API changes

None.

Data model changes

None.

Release notes snippet

None needed, it's a bug fix.

Issue fork drupal-3638040

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

phenaproxima created an issue. See original summary.

phenaproxima’s picture

Status: Active » Needs review

I think this is ready for review. The MR was LLM-assisted, and I reviewed it line by line.