redirect to default tab when no tab is specified in deep link

pull/4826/head
Jens Ulferts 8 years ago
parent 6db3d8b5c0
commit cc9258108a
No known key found for this signature in database
GPG Key ID: 3CAA4B1182CF5308
  1. 8
      frontend/app/components/routing/ui-router.config.ts

@ -80,6 +80,14 @@ openprojectModule
.when('/work_packages/{workPackageId:[0-9]+}?query_id&query_props', ($match, $state) => {
$state.go('work-packages.show.activity', $match, { location: 'replace' });
return true;
})
.when('/work_packages/details/{workPackageId:[0-9]+}?query_id&query_props', ($match, $state) => {
$state.go('work-packages.list.details.overview', $match, { location: 'replace' });
return true;
})
.when('/{projects}/{projectPath}/work_packages/details/{workPackageId:[0-9]+}?query_id&query_props', ($match, $state) => {
$state.go('work-packages.list.details.overview', $match, { location: 'replace' });
return true;
});
$urlMatcherFactoryProvider.strictMode(false);

Loading…
Cancel
Save