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.

Comments

jwmorris created an issue. See original summary.

maboy’s picture

Assigned: Unassigned » maboy
maboy’s picture

Assigned: maboy » Unassigned
Status: Active » Reviewed & tested by the community
Issue tags: +Smile Drupal contribution tour 2019

Hello,

We've tested with CurriedN, and it works ;-)

grimreaper’s picture

Hello,

Thanks for the patch and thanks for the tests.

Index: web/modules/contrib/i18n_sso/i18n_sso.module

Patch is not done with git and so not appliable.

I will apply it manually.

  • jwmorris authored 121c799 on 8.x-1.x
    Issue #3059395 by jwmorris, maboy, Grimreaper: Does not work if using...
grimreaper’s picture

Status: Reviewed & tested by the community » Fixed

Patch is merged now. Thanks I will make a new release.

grimreaper’s picture

Sorry I forgot to credit CurriedN.

Status: Fixed » Closed (fixed)

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