Dealing with unpublished content / 403

Created on 23 May 2024, 6 months ago
Updated 16 August 2024, 3 months ago

Problem/Motivation

How to override 403 error with redirect

Steps to reproduce

Unpublish a content (A) , set up a redirect A ->B
Set yourself as anonymous user , visit A :

Error 403 is displayed

Desired behavior

B is displayed , A stays unpublished

How to deal with this ?

Is this issue solvable with the current module ? Should I install another module or implement custom code ?

I can not delete the content as it can be used as a source of inspiration for future content

πŸ’¬ Support request
Status

Active

Version

1.9

Component

Documentation

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @MarelPup
  • πŸ‡³πŸ‡ΏNew Zealand simon2d

    Experiencing the same behavior here. Our content author raised this to the devs recently. Not sure when this started occuring.

  • πŸ‡³πŸ‡ΏNew Zealand simon2d

    I am still experiencing this issue.

    A workaround was for us to manually delete the URL alias associated the page A. After flushing the cache, the redirect was working correctly.

  • I was going through the same issue, I think the redirection for path aliases is not working with this module, so i guess when you are trying to redirect from an aliased path, let assume from /a to /b it will not work but if try to add the redirect with the node ids like from /node/1 to /node/2 the redirection will heppen and your unpublished content can be redirected to a published content as per your requirement.
    But if you want to add the redirections from alias to alias then you can try the patch given in comment number #142 β†’ of this β†’ issue.
    I think this will resolve the problem you are facing now Please let us know whether it's working for you or not.
    Thanks

  • πŸ‡ΊπŸ‡ΈUnited States jennie258fitz

    Thank you for helping people get the information they need. Great stuff as usual. Keep up the great work!!! Receiptify Spotify

Production build 0.71.5 2024