[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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user