Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

General Questions /

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

Login form missing absolute path


Reply


3 Posts   1859 Views

Avatar
maetl

Community Member, 15 Posts

21 January 2010 at 10:06pm

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...

Avatar
ajshort

Community Member, 244 Posts

22 January 2010 at 3:35am

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

Avatar
maetl

Community Member, 15 Posts

22 January 2010 at 6:35am

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

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