Added redirection to proper URL after tag renaming

This commit is contained in:
Marcin Kurczewski 2014-11-03 13:15:43 +01:00
parent 150d585860
commit 3d7967e7c1

View file

@ -119,6 +119,7 @@ App.Presenters.TagPresenter = function(
render(); render();
renderPosts(posts); renderPosts(posts);
tagList.refreshTags(); tagList.refreshTags();
router.navigateInplace('#/tag/' + tag.name);
}).fail(function(response) { }).fail(function(response) {
window.alert(response.json && response.json.error || 'An error occured.'); window.alert(response.json && response.json.error || 'An error occured.');
}); });