Drupal allows you to specify a node as your 403 page in Config > Basic site settings. This makes the route name entity.node.canonical therefore this module does not work as it is looking for route name system.403.
I have attached a patch we used to fix this on our project (which we tested working both with the "basic site settings" approach and with the default approach). I believe this patch is specific to our install paths so wont apply for everyone, so please feel free to customise and reupload - apologies, my patch know-how is lacking!
The patch looks at the request stack and checks for a 403 response at the HTTP level as opposed to Drupal page render level so will hopefully be more reliable in that regard.
Hope this helps.
| Comment | File | Size | Author |
|---|---|---|---|
| i18n_sso-route_name_exception.patch | 1 KB | jwmorris |
Comments
Comment #2
maboy commentedComment #3
maboy commentedHello,
We've tested with CurriedN, and it works ;-)
Comment #4
grimreaperHello,
Thanks for the patch and thanks for the tests.
Patch is not done with git and so not appliable.
I will apply it manually.
Comment #6
grimreaperPatch is merged now. Thanks I will make a new release.
Comment #8
grimreaperSorry I forgot to credit CurriedN.