- 🇮🇹Italy kimlop
I tested the last two patches (#71 #64) with core 10.3.5 and both don't work.
- 🇫🇷France duaelfr Montpellier, France
Patch #64 applies on Drupal 10.3.x and fixes the issue.
I updated the IS and I believe that comments from #60 and #61 don't apply anymore with the approach followed in the patch.For novices: please convert #64 patch to a MR to ease maintainers job.
- Merge request !10046Issue #1464244: Rewrite as URL adding equals sign to end of url. → (Open) created by sayan_k_dutta
- 🇺🇾Uruguay rsbarbano
Patch #64 is working for me in a Drupal version 11.0.4.
Thank you!. - Status changed to Needs review
8 months ago 6:48am 9 December 2024 - 🇧🇷Brazil igorgoncalves
Hi Sayan, thanks for the effort.
Despite the fact that tests have "Pass" status, there's one warning left, and checking the detail says:Drupal\Tests\Core\Utility\UnroutedUrlAssemblerTest::testAssembleWithExternalUrl with data set #7 Failed asserting that two strings are equal. --- Expected +++ Actual @@ @@ -'https://example.com/test?foo' +'https://example.com/test?foo='
which sounds like pretty much what we are testing here, isnt?
- 🇮🇳India sayan_k_dutta
@igorgoncalves yes, indeed the two strings of urls are different, that is what we need here. Do I need to make changes to test files, to remove the warnings. I don't have much knowledge of phpunit tests, but can look into it.
- 🇮🇳India sayan_k_dutta
All tests are now passing, warnings are resolved. Please review.
- 🇮🇳India koustav_mondal Kolkata
Checked in my local setup before and after changes. Attaching screenshots. LGTM+
- Status changed to Needs work
6 months ago 7:54pm 14 February 2025 - First commit to issue fork.
- 🇺🇸United States joegraduate Arizona, USA
Updated the MR with @alexpott's recommended changes and also replaced
strpos()
withpreg_match()
using a regex that should prevent the false positives due to substring overlap that @alexpott noted by ensuring that the matches are either at the beginning of the query string or after a&
. - 🇺🇸United States smustgrave
Rebased as this MR was 800 commits back
Feedback appears to be addressed on this one.
- 🇺🇸United States xjm
NR for a small commment improvement suggestion I made on the MR. It's okay to re-RTBC the issue if the suggestion is accepted (no need for an extra review cycle over something small).
- First commit to issue fork.
- Status changed to RTBC
22 days ago 3:06pm 14 July 2025 - 🇺🇸United States smustgrave
Feedback from xym appears to be addressed, saving credit for xjm review in the MR.
- 🇬🇧United Kingdom oily Greater London
Line 227 of UrlHelper.php, removed comment that could confuse the meaning of the comment addition in this MR. Cannot see any purpose in it at all except to confuse people.
- 🇺🇸United States joegraduate Arizona, USA
Restored comment removed from else block in UrlHelper::parse(). Not sure why that was removed (was removed in one of the earlier patches that preceded the MR).
- 🇺🇸United States joegraduate Arizona, USA
Reverted my most recent commit to restore removed comment (see #95). Failed to realize that @oily was describing a change that had already been made and not requesting a change. Apologies for the confusion.
- 🇺🇸United States xjm
Thanks for the update!
Despite my earlier comment: This is pretty low-level, and the approach has changed several times over the issue's 13-year (!) history. So, I'd like subystem and/or framework signoff for the fix. Leaving RTBC for that.