Skip to content
This repository was archived by the owner on Mar 1, 2026. It is now read-only.

Commit dc20a1b

Browse files
dquach217sman591
andauthored
Update app/controllers/manage/configs_controller.rb
Co-Authored-By: Stuart Olivera <stuart@stuartolivera.com>
1 parent 1cb0397 commit dc20a1b

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

app/controllers/manage/configs_controller.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ def update
1818
value = true if value == "true"
1919
value = false if value == "false"
2020
if @config.var.end_with?("_asset") && !value.start_with?('http://', 'https://')
21-
redirect_to manage_configs_path, notice: "Config \"#{key}\" was not changed"
21+
flash[:alert] = "Config \"#{key}\" must start with http:// or https://"
22+
render :edit
2223
elsif @config.value != value
2324
@config.value = value
2425
@config.save

0 commit comments

Comments
 (0)