Jump to:

22976 Posts in 11667 Topics by 2826 members

General Questions

SilverStripe Forums » General Questions » Login form missing absolute path

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 1762 Views
  • maetl
    Avatar
    Community Member
    15 Posts

    Login form missing absolute path Link to this post

    On a new installation of silverstripe 2.4alpha, the admin login was working with the default tutorial theme, but is not working with a custom theme.

    The link in the login form is missing an absolute path slash, so the form action is set to "Security/Login"...

    This means users cannot log in, because instead of going to /Security/Login, it tries to load Security/Security/Login which doesn't exist.

    I'm not sure what the best way to fix this is...

  • ajshort
    Avatar
    Community Member
    244 Posts

    Re: Login form missing absolute path Link to this post

    Do you have a <% base_tag %> in the head section of your custom theme? This is required for paths to work correctly.

  • maetl
    Avatar
    Community Member
    15 Posts

    Re: Login form missing absolute path Link to this post

    That is exactly what is missing. Thanks AJ...

    I’ll keep that in mind when building new themes.

    1762 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.