+ let toGo = '/' + pathObj.route;
+ // left global search to act the same as before for our 2 static views for now
+ // until we decide to change those 2 views too to act like extensible views.
+ if (pathObj.route === 'schema' || pathObj.route === 'vnfSearch') {
+ if (pathObj.filterValues && pathObj.filterValues.length > 0) {
+ let filterList = [];
+ for (let index in pathObj.filterValues) {
+ if (pathObj.filterValues[index].filterValue !== undefined) {
+ filterList.push(pathObj.filterValues[index].filterId +
+ '=' +
+ pathObj.filterValues[index].filterValue);
+ } else {
+ filterList.push(pathObj.filterValues[index].filterId + '=');
+ }
+ }
+ toGo = toGo + '/' + filterList.toString();
+ } else {
+ toGo = toGo + '/' + pathObj.hashId;
+ }
+ } else {
+ toGo += '/' + encrypt(JSON.stringify(pathObj));
+ }