Skip to content

Commit

Permalink
Merge pull request #2594 from AlchemyCMS/backport/7.0-stable/pr-2593
Browse files Browse the repository at this point in the history
[7.0-stable] Merge pull request #2593 from tvdeyen/fix-turbo-redirect
  • Loading branch information
tvdeyen authored Oct 6, 2023
2 parents 420c4f5 + 410d0dd commit 6dcdc02
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/controllers/alchemy/admin/languages_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def create
@language = Alchemy::Language.new(resource_params)
if @language.save
flash[:notice] = Alchemy.t("Language successfully created")
redirect_to alchemy.admin_pages_path(language_id: @language)
do_redirect_to alchemy.admin_pages_path(language_id: @language)
else
render :new
end
Expand All @@ -48,7 +48,7 @@ def load_current_site
@current_site = Alchemy::Site.current
if @current_site.nil?
flash[:warning] = Alchemy.t("Please create a site first.")
redirect_to admin_sites_path
do_redirect_to admin_sites_path
end
end
end
Expand Down
2 changes: 1 addition & 1 deletion app/controllers/alchemy/admin/sites_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ def create
@site = Alchemy::Site.new(resource_params)
if @site.save
flash[:notice] = Alchemy.t("Please create a default language for this site.")
redirect_to alchemy.admin_languages_path(site_id: @site)
do_redirect_to alchemy.admin_languages_path(site_id: @site)
else
render :new
end
Expand Down

0 comments on commit 6dcdc02

Please sign in to comment.