Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 299620

InvalidArgumentException: Cannot redirect to an empty URL. in Symfony

$
0
0

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

  1. Create a duplicate of the Content view
  2. Edit the duplicate
  3. Change the path to say /break
  4. Got to admin/structure/views and see that the path for the duplicate view is "/" not "/break"
  5. 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

User interface changes

API changes

Data model changes

Release notes snippet


Viewing all articles
Browse latest Browse all 299620

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>