Skip to content

Commit 1115e7c

Browse files
committed
fix: redirect to editor path after saving design instead of edit path
1 parent ff98a7c commit 1115e7c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/controllers/designs_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def create
3636

3737
if @design.save
3838
create_edit_session(@design, params[:elapsed_seconds])
39-
redirect_to edit_design_path(@design), notice: "Design saved successfully."
39+
redirect_to editor_design_path(@design), notice: "Design saved successfully."
4040
else
4141
error_text = @design.errors.full_messages.to_sentence.presence || "Unknown reason"
4242
flash.now[:alert] = "Unable to save design: #{error_text}."

0 commit comments

Comments
 (0)