- ๐จ๐ฆCanada alireza.tayari Ontario
alireza.tayari โ made their first commit to this issueโs fork.
When an administrator adds a redirect url that does not start with a protocol, slash or token they get no error on form submission.
When the redirect is triggered, the user logging in gets an error "InvalidArgumentException: The user-entered string 'node/1' must begin with a '/', '?', or '#'. in Drupal\Core\Url::fromUserInput() (line 214 of core/lib/Drupal/Core/Url.php)."
- Create a node. Assume it's nid is 1.
- Enter 'node/1' as redirect path for a role.
- Log in as a user with that role.
- See error
- Add test-case for adding relative urls that do not start with a slash
- Improve form validation to alert user to invalid path when saving settings form.
- Add update hook to fix existing wrong urls.
None
None, existing form error handling can be used.
None
None
Needs review
1.0
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
alireza.tayari โ made their first commit to this issueโs fork.