Skip to content

use user.login route for D8 login URL instead of user.page

johnk requested to merge drupal_login_url into master

user.page resolves to '/user', which does present a login form to an unauthenticated user. The problem is that in recent Drupal versions it will not work when passed parameters, such as ?destination=.... Instead you have to use '/user/login', which is the 'user.login' route.

This is a proposed fix for the issue.

Merge request reports