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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Form Questions /

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

Relative paths for FormAction


Go to End


2239 Views

Avatar
robs1983

Community Member, 1 Post

28 January 2010 at 3:11am

Hello together,

I hope you can help me :)

I use a silverstripe installation on a german host provider, called strato.

In one page, I use a form, which works correct (www.website.de/Anmeldung).

The formattributes are "<form id="Form_Form" action="/anmeldung/Form" method="post" enctype="application/x-www-form-urlencoded">"

Now, I want to use SSL. Here, strato redirects the site to https://www.ssl-id.de/www.website.de/Anmeldung
The formattributes are "<form id="Form_Form" action="/www.website.de/anmeldung/Form" method="post" enctype="application/x-www-form-urlencoded">"

Thus, the form action doesn't work, because of using relative paths in action.

Is there a possibility to change the path?

Best regards
robs