Active
Project:
urllogin
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
14 Nov 2019 at 22:16 UTC
Updated:
14 Nov 2019 at 22:21 UTC
Jump to comment: Most recent
I noticed that the login route '/l/{urlstring}/{arg}' is being cached: using the same url twice (each time in a new anonymous window) the second time you are just redirected to the homepage in stead of being logged in.
This is easy to fix if you add the following option to the routing.yml for that route:
urllogin.login:
path: '/l/{urlstring}/{arg}'
defaults:
_controller: '\Drupal\urllogin\Controller\UrlloginController::login'
urlstring: ''
arg: ''
requirements:
_permission: 'access content'
options:
no_cache: 'TRUE'
(so adding no_cache: 'TRUE')
solves the issue. I can now keep on logging in.
Comments
Comment #2
pieterdt commented