diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2017-04-24 11:31:49 +0200 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2017-04-24 11:31:49 +0200 |
commit | 026d509336775b9d6bf4c1d10849f03a2e9e5692 (patch) | |
tree | 4ce36eaccb18281d52aa5e3f06bf08146161aa07 /js | |
parent | a309d7c2802f654c5c13b76672620f438cffb9be (diff) |
Redirect from UID to GID+UID
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'js')
-rw-r--r-- | js/main.js | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -15,6 +15,12 @@ angular.module('contactsApp', ['uuid4', 'angular-cache', 'ngRoute', 'ui.bootstra template: '<contactdetails></contactdetails>' }); + $routeProvider.when('/contact/:uid', { + redirectTo: function(parameters) { + return '/' + t('contacts', 'All contacts') + '?uid=' + parameters.uid; + } + }); + $routeProvider.when('/:gid/:uid', { template: '<contactdetails></contactdetails>' }); |