form: add setting for changing redirect url

for #167, Settings > General (Advanced) > Form success redirect URL.
This commit is contained in:
Harvey Tindall
2021-12-20 20:44:08 +00:00
parent d8b1f03ac4
commit e6cc7fce1a
3 changed files with 14 additions and 3 deletions

View File

@@ -39,6 +39,8 @@ func (app *appContext) loadConfig() error {
app.MustSetValue("jellyfin", "public_server", app.config.Section("jellyfin").Key("server").String())
app.MustSetValue("ui", "redirect_url", app.config.Section("jellyfin").Key("public_server").String())
for _, key := range app.config.Section("files").Keys() {
if name := key.Name(); name != "html_templates" && name != "lang_files" {
key.SetValue(key.MustString(filepath.Join(app.dataPath, (key.Name() + ".json"))))