Remove the Base URL from the request URL to get the right Form Info By Url

Created on 22 September 2022, almost 2 years ago
Updated 17 January 2024, 5 months ago

Problem/Motivation

Having sites with nested directories, and trying to edit a content with AJAX
And some other AJAX functions to work like paragraphs

Uncaught PHP Exception UnexpectedValueException: "External URLs do not have internal route parameters." at /var/www/html/projects/drupal9permissions_by_term/web/core/lib/Drupal/Core/Url.php line 583, referer: http://localhost/projects/drupal9permissions_by_term/web/node/6530/edit

Steps to reproduce

When editing content and needing to use AJAX
The following error blocks the AJAX process

Proposed resolution

Remove the Base URL from the request URL to get the right Form Info By Url

Remaining tasks

  • βœ… File an issue
  • βž– Addition/Change/Update/Fix
  • βž– Testing to ensure no regression
  • βž– Automated unit testing coverage
  • βž– Automated functional testing coverage
  • βž– UX/UI designer responsibilities
  • βž– Readability
  • βž– Accessibility
  • βž– Performance
  • βž– Security
  • βž– Documentation
  • βž– Code review by maintainers
  • βž– Full testing and approval
  • βž– Credit contributors
  • βž– Review with the product owner
  • βž– Release notes snippet
  • ❌ Release

User interface changes

  • N/A

API changes

  • N/A

Data model changes

  • N/A

Release notes snippet

  • N/A
πŸ› Bug report
Status

Needs review

Version

3.1

Component

Code

Created by

πŸ‡―πŸ‡΄Jordan Rajab Natshah Jordan

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

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • First commit to issue fork.
  • πŸ‡©πŸ‡ͺGermany marcoliver Neuss, NRW, Germany

    Hi Rajab Natshah!

    Thanks for creating this issue and your patch!

    I have created an issue fork based on your patch (and some code-cleanup). Everything seemed fine from what I can tell. But can you please give the issue fork a quick spin to see, if the fix still works for your particular problem?

Production build 0.69.0 2024