Commit fc85e988 authored by ale's avatar ale

Add missing TrimRight in URLPrefix template variable

This caused the SSO server to generate bad form links, which caused a
302, preventing POST requests to succeed.
parent ca613c0b
Pipeline #2277 passed with stages
in 2 minutes and 2 seconds
...@@ -507,7 +507,7 @@ type renderer struct { ...@@ -507,7 +507,7 @@ type renderer struct {
func newRenderer(config *Config) *renderer { func newRenderer(config *Config) *renderer {
return &renderer{ return &renderer{
tpl: parseEmbeddedTemplates(), tpl: parseEmbeddedTemplates(),
urlPrefix: config.URLPrefix, urlPrefix: strings.TrimRight(config.URLPrefix, "/"),
accountRecoveryURL: config.AccountRecoveryURL, accountRecoveryURL: config.AccountRecoveryURL,
siteName: config.SiteName, siteName: config.SiteName,
siteLogo: config.SiteLogo, siteLogo: config.SiteLogo,
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment