mirror of
https://github.com/projekteuler/projekteuler.git
synced 2026-11-23 19:33:46 +01:00
Redirect to original problem after translation creation
This commit is contained in:
1 parent
fb108420b4
commit
b281f56d11
2 files changed
+2
-2
No files matched your search
@@ -25,7 +25,7 @@ class TranslationsController < ApplicationController
|
||||
|
||||
respond_to do |format|
|
||||
if @translation.save
|
||||
format.html { redirect_to @translation, notice: t('translations.notice.successfully_created') }
|
||||
format.html { redirect_to @translation.problem, notice: t('translations.notice.successfully_created') }
|
||||
format.json { render :show, status: :created, location: @translation }
|
||||
else
|
||||
format.html { render :new }
|
||||
|
||||
Reference in new issue
Block a user