mirror of
https://github.com/nasa/openmct.git
synced 2025-03-23 04:25:27 +00:00
[Addressability] Infer ROOT
Treat the path element for the root domain object as implicit, such that it does not appear in the full URL. WTD-1149.
This commit is contained in:
parent
8f18d88705
commit
9fae2db04a
@ -29,7 +29,8 @@ define(
|
||||
function () {
|
||||
"use strict";
|
||||
|
||||
var DEFAULT_PATH = "ROOT/mine";
|
||||
var ROOT_ID = "ROOT",
|
||||
DEFAULT_PATH = "mine";
|
||||
|
||||
/**
|
||||
* The BrowseController is used to populate the initial scope in Browse
|
||||
@ -41,7 +42,9 @@ define(
|
||||
* @constructor
|
||||
*/
|
||||
function BrowseController($scope, $routeParams, objectService, navigationService) {
|
||||
var path = ($routeParams.ids || DEFAULT_PATH).split("/");
|
||||
var path = [ROOT_ID].concat(
|
||||
($routeParams.ids || DEFAULT_PATH).split("/")
|
||||
);
|
||||
|
||||
// Callback for updating the in-scope reference to the object
|
||||
// that is currently navigated-to.
|
||||
|
Loading…
x
Reference in New Issue
Block a user