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

Created on 22 September 2022, about 3 years ago
Updated 17 January 2024, almost 2 years 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.

Production build 0.71.5 2024