Commit 6b9b2b26 authored by Sean Roberts's avatar Sean Roberts Committed by GitHub

Merge pull request #184 from hypothesis/remove-sidebar-redirect

Remove initial redirect when sidebar loads
parents 26bd2791 1c933e5a
......@@ -63,13 +63,6 @@ function configureRoutes($routeProvider) {
reloadOnSearch: false,
resolve: resolve,
});
$routeProvider.when('/viewer',
{
controller: 'WidgetController',
template: VIEWER_TEMPLATE,
reloadOnSearch: false,
resolve: resolve,
});
$routeProvider.when('/stream',
{
controller: 'StreamController',
......@@ -77,8 +70,11 @@ function configureRoutes($routeProvider) {
reloadOnSearch: false,
resolve: resolve,
});
return $routeProvider.otherwise({
redirectTo: '/viewer',
$routeProvider.otherwise({
controller: 'WidgetController',
template: VIEWER_TEMPLATE,
reloadOnSearch: false,
resolve: resolve,
});
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment