Problem/Motivation
As explored in #3268487: EntityResource::getRequestLink() prevents outbound path processing on pagination links, in some circumstances core (e.g., json:api) generates absolute "external" URLs (from the original request) that should, but don't, undergo path processing. We should extend the existing logic in UnroutedUrlAssembler::buildExternalUrl() to carve out a path for path processing, similar to the existing code in ::buildLocalUrl().
Steps to reproduce
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes
Release notes snippet
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | interdiff_3-6.txt | 1.02 KB | ranjith_kumar_k_u |
| #6 | 3268508-6.patch | 3.48 KB | ranjith_kumar_k_u |
Issue fork drupal-3268508
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
Comment #2
bradjones1Comment #4
bradjones1Comment #5
bradjones1Code style and also I forgot to add the base path back on to the path after processing.
Comment #6
ranjith_kumar_k_u commentedFixed CS errors.
Comment #7
bradjones1Test failures *look* to be related to test setup/dependencies missing, not any regressions (that we can see yet, anyway.)
Comment #11
bradjones1Back for a rebase and adding some test coverage. I think this would fix the issue outlined in #3268487: EntityResource::getRequestLink() prevents outbound path processing on pagination links. Would be amazing to try to get this into 11.0 but I know we're right up against the beta.
Added a draft change record as well.
It's getting late now but it seems most of the errors have to do with test setup, as noted before. I'll loop around on this Monday.