Updated: Comment #0

Problem/Motivation

When site have only one content type /node/add throws exception
Symfony\Component\Routing\Exception\RouteNotFoundException: Route "node_add" does not exist. in Drupal\Core\Routing\RouteProvider->getRouteByName() (line 127 of ...core/lib/Drupal/Core/Routing/RouteProvider.php).

Proposed resolution

Use right route for redirect

Comments

andypost’s picture

Status: Active » Needs review
StatusFileSize
new774 bytes
new1.43 KB
xjm’s picture

Priority: Major » Critical

I'd call that a release blocker.

The last submitted patch, 1: 2163003-node_add-1-FAIL.patch, failed testing.

The last submitted patch, 1: 2163003-node_add-1-FAIL.patch, failed testing.

Status: Needs review » Needs work

The last submitted patch, 1: 2163003-node_add-1.patch, failed testing.

jibran’s picture

Status: Needs work » Needs review

1: 2163003-node_add-1.patch queued for re-testing.

andypost’s picture

1: 2163003-node_add-1-FAIL.patch queued for re-testing.

The last submitted patch, 1: 2163003-node_add-1-FAIL.patch, failed testing.

larowlan’s picture

Status: Needs review » Reviewed & tested by the community

We had the same issue with custom block at one stage

webchick’s picture

Status: Reviewed & tested by the community » Fixed

Committed and pushed to 8.x. Thanks!

xjm’s picture

Component: node.module » node system

(Merging "node system" and "node.module" components for 8.x; disregard.)

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.