Needs review
Project:
High contrast
Version:
8.x-1.0-beta4
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
29 Mar 2022 at 12:01 UTC
Updated:
4 Apr 2022 at 07:48 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
mkrizaj commentedCreated a fix for this.
Comment #3
mkrizaj commentedAdding correct patch with Url use.
Comment #4
mkrizaj commentedComment #5
hkirsman commentedThanks, @mkrizaj!
Hm, I guess this fails sometimes in our code:
Url::fromRoute('<current>')->toString()But I agree it should not give any error if it's missing.
About the patch "?destination=" would give empty string and the isset() check would pass, still failing with "InvalidArgumentException: Cannot redirect to an empty URL"
I looking at the class and not sure why I've added constructor there. Maybe it's leftover?
Here's my suggestion.