client/tags: fix renaming tag not redirecting url

This commit is contained in:
rr- 2016-05-22 18:10:34 +02:00
parent 7ea4718b1b
commit ed05ac3c57
1 changed files with 3 additions and 0 deletions

View File

@ -120,6 +120,9 @@ class TagsController {
_saveTag(tag, input) {
return api.put('/tag/' + tag.names[0], input).then(response => {
if (input.names && input.names[0] !== tag.names[0]) {
page('/tag/' + input.names[0]);
}
events.notify(events.Success, 'Tag saved.');
return Promise.resolve();
}, response => {