[Windowing] URL Fix

The URL malformation was caused by the same
function returning the view and index path for
both the newtab window and the browse controller
window. As a result, the BrowseController now only
uses a path that excludes the view and index paths,
like before the UrlService was added. Another,
separate function uses this url for the location
and includes the view and index paths for new
tabs, in order to maintain the current view. WTD 23.
This commit is contained in:
Shivam Dave
2015-06-25 09:47:58 -07:00
parent 9ac6abe78f
commit ca6f44f7b6
3 changed files with 29 additions and 9 deletions

View File

@@ -55,10 +55,11 @@ define(
$route.current = priorRoute;
unlisten();
});
// urlService.urlFor used to adjust current
// urlService.urlForLocation used to adjust current
// path to new, addressed, path based on
// domainObject
$location.path(urlService.urlFor("browse", domainObject));
$location.path(urlService.urlForLocation("browse", domainObject));
}
// Callback for updating the in-scope reference to the object