ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Unauthorized access redirect not working

May 15, 2012 5:30am

Subscribe [2]
  • #1 / May 15, 2012 5:30am

    Pv Ledoux

    95 posts

    Hi,

    since we upgraded to 2.4, the unauthorized templates access are not redirect to the defined location in the CP (see screenshot).
    The problem occurred for every unauthorized templates.

    In all the templates, I have an embedded header called on the first line with the following:

    {if logged_out}
     {redirect="/backoffice/login"}
    {/if}

    Not sure what I’m doing wrong here.

    Regards,

    Pv

  • #2 / May 16, 2012 11:48am

    Dan Decker

    7338 posts

    Hi Pv Ledoux,

    Sorry for the trouble you are having here.

    It may be inconsequential, but you shouldn’t need the leading slash in your redirect path.

    {if logged_out}
     {redirect="backoffice/login"}
    {/if}

    But more directly, in 2.4, there is this bug. If you apply the fix or update to 2.5 you should be in good shape.

    Cheers,

  • #3 / May 16, 2012 11:57am

    Pv Ledoux

    95 posts

    Hi Dan,

    thanks for your answer. I identify the bug, but couldn’t find it in the bug tracker. Thanks a lot!


    Cheers!

    Pv

  • #4 / May 18, 2012 6:03pm

    Dan Decker

    7338 posts

    Hi Pv,

    Fantastic!

    If you need anything else, just let us know.

    Cheers!

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases