diff --git a/app/controllers/playlists/songs_controller.rb b/app/controllers/playlists/songs_controller.rb index aa04fd43..598bdf40 100644 --- a/app/controllers/playlists/songs_controller.rb +++ b/app/controllers/playlists/songs_controller.rb @@ -15,7 +15,7 @@ def create respond_to do |format| format.json { render partial: "songs/song", locals: { song: @song } } - format.html { redirect_back_or_to({ action: "index" }, notice: t("notice.added_to_playlist")) } + format.html { redirect_to({ action: "index" }, notice: t("notice.added_to_playlist")) } end rescue ActiveRecord::RecordNotUnique raise BlackCandy::DuplicatePlaylistSong