Results 1 to 5 of 5

Thread: How to in FE? referer=dHlwb2xpZ2h0L21haW4ucGhwP2RvPWNhdGFsb2

  1. #1
    Experienced user
    Join Date
    06-10-09.
    Location
    Cape Town, South Africa
    Posts
    1,387

    Default How to in FE? referer=dHlwb2xpZ2h0L21haW4ucGhwP2RvPWNhdGFsb2

    How can I get the FE to behave like the backend with referrer URLs? e.g.

    The current client is using the catalog and when you post a comment, the comment URL and comment EDIT URL is posted in the message (this is valid for comments in News as well).

    When you click on the edit, the TL BE login is presented and when you logon, you're taken to the page you clicked on.
    e.g.
    Code:
    http://www.client.com/typolight/main.php?do=catalog&key=comments&act=edit&id=5
    => login url is:
    Code:
    http://www.client.com/typolight/index.php?referer=dHlwb2xpZ2h0L21haW4ucGhwP2RvPWNhdGFsb2cma2V5PWNvbW1lbnRzJmFjdD1lZGl0JmlkPTU=
    However, when you click on the view link, the TL FE login (since the client protects the catalog's pages from public view) is presented, but of course when you logon, you're taken to the default page, rather than the redirect URL.

    e.g. Catalog Reader item link is (in comments e-mail)
    Code:
    http://www.client.com/article-detail/items/PoCo1.html
    => login url is:
    Code:
    http://www.client.com/login.html
    => but I would like this:
    Code:
    http://www.client.com/login.html?referer=dHlwb2xpZ2h0L21haW4ucGhwP2RvPWNhdGFsb2cma2V5PWNvbW1lbnRzJmFjdD1lZGl0JmlkPTU=
    Maybe its there, but I've ticked a setting or something to disable it? Anyone?

  2. #2
    Core developer
    Official Contao Team
    leo's Avatar
    Join Date
    06-04-09.
    Location
    Wuppertal, Germany
    Posts
    201

    Default Re: How to in FE? referer=dHlwb2xpZ2h0L21haW4ucGhwP2RvPWNhdGFsb2

    There is a "redirect back to last page visited" option in the login module. Does that help?

  3. #3
    Experienced user
    Join Date
    06-10-09.
    Location
    Cape Town, South Africa
    Posts
    1,387

    Default Re: How to in FE? referer=dHlwb2xpZ2h0L21haW4ucGhwP2RvPWNhdGFsb2

    nope. it doesn't do anything. Will this option override the default redirect page?

    I also noticed that the URL stays login.html without any referrer, etc. So, coming from an e-mail to a protected FE page, doesn't behave like the BE, even with your setting on? Am I configuring it wrong? Does the Member Group redirect interfere?

  4. #4
    Experienced user
    Join Date
    06-10-09.
    Location
    Cape Town, South Africa
    Posts
    1,387

    Default Re: How to in FE? referer=dHlwb2xpZ2h0L21haW4ucGhwP2RvPWNhdGFsb2

    hi leo

    thanks that is the correct feature, but its not quite how I imagined it to work.

    To me, if there is no last url visited checkbox, THEN use the login module's default, if that is not set, THEN use the group's default page as a last resort.

    At the moment, the group redirect overrides the last visited URL, which to me is counter-intuitive.

  5. #5
    User FloB's Avatar
    Join Date
    06-21-09.
    Posts
    157

    Default Re: How to in FE? referer=dHlwb2xpZ2h0L21haW4ucGhwP2RvPWNhdGFsb2

    Ai, I support your request. Would you please post a ticket in the trac? Thanks!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •