Fixed redirection after tag renaming

This commit is contained in:
Marcin Kurczewski 2014-11-09 17:49:12 +01:00
parent 6679afbb6b
commit a56bd55b50

View file

@ -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.');
});