Logging in causes the error,
Deprecated function: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in Drupal\Component\Utility\UrlHelper::isExternal() (line 216 of core/lib/Drupal/Component/Utility/UrlHelper.php).
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | 3292255-4.patch | 784 bytes | darvanen |
Comments
Comment #2
szymon-gorecki commentedThe default value can be set as a parameter of the get method
Comment #3
sayco commentedThe proposed patch #2 seems to be a better proposal (as the get methods provides the default value argument).
I've test the patch and works as expected!
Comment #4
darvanenWhy invoke UrlHelper on an empty string?
I propose a different, simpler approach. Patch attached.
Comment #5
kalpaitch commented#4 Actually my apologies that looks like the best approach and does fit the logic :)
Comment #6
kalpaitch commentedComment #7
kalpaitch commentedLooks good on review.
Comment #9
rsvelko commented