From a56bd55b501f2c0dd3da60ba4133e1ba2a6f0324 Mon Sep 17 00:00:00 2001 From: Marcin Kurczewski Date: Sun, 9 Nov 2014 17:49:12 +0100 Subject: [PATCH] Fixed redirection after tag renaming --- public_html/js/Presenters/TagPresenter.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public_html/js/Presenters/TagPresenter.js b/public_html/js/Presenters/TagPresenter.js index f6abdc6f..68025cba 100644 --- a/public_html/js/Presenters/TagPresenter.js +++ b/public_html/js/Presenters/TagPresenter.js @@ -122,7 +122,7 @@ App.Presenters.TagPresenter = function( promise.wait(api.put('/tags/' + tag.name, formData)) .then(function(response) { - router.navigateInplace('#/tag/' + tag.name); + router.navigateInplace('#/tag/' + response.json.name); }).fail(function(response) { window.alert(response.json && response.json.error || 'An error occured.'); });