Problem/Motivation
Pages are not showing up (WSOD) with the following error:
The website encountered an unexpected error. Please try again later.
InvalidArgumentException: Cannot redirect to an empty URL. in Symfony\Component\HttpFoundation\RedirectResponse->setTargetUrl() (line 86 of vendor/symfony/http-foundation/RedirectResponse.php).
I also noticed that the LOGO and HOME in the main menu do not redirect to the front page but instead they redirect to the current page.
Steps to reproduce
- Create a duplicate of the Content view
- Edit the duplicate
- Change the path to say /break
- Got to admin/structure/views and see that the path for the duplicate view is "/" not "/break"
- Log out and get The website encountered an unexpected error. Please try again later.
Workaround
Log back in, delete the duplicate view, and logout works without error.
Proposed resolution
TBD
Remaining tasks
Add a test
Patch
Review
Commit