summaryrefslogtreecommitdiffstats
path: root/js
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2017-04-24 11:31:49 +0200
committerChristoph Wurst <christoph@winzerhof-wurst.at>2017-04-24 11:31:49 +0200
commit026d509336775b9d6bf4c1d10849f03a2e9e5692 (patch)
tree4ce36eaccb18281d52aa5e3f06bf08146161aa07 /js
parenta309d7c2802f654c5c13b76672620f438cffb9be (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.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/js/main.js b/js/main.js
index 32dbf24e..8e2c43df 100644
--- a/js/main.js
+++ b/js/main.js
@@ -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>'
});