Details
-
Bug
-
Resolution: Fixed
-
High
-
1.6.1
-
None
Description
If we add querystring-stringify as a ezs-studionavigationhubplugin dependency we will get errors while accessing content objects on the Platform UI.
The issue itself is related to eZ Studio, even if it happens on the Platform UI side.
Using querystring-stringify will make the following calls to be done:
/api/ezp/v2/content/locations/1/2/urlaliases?custom=0&siteaccessName=
The correct should be:
/api/ezp/v2/content/locations/1/2/urlaliases?custom=false&siteaccessName=undefined
In resume, using querystring-stringify will make custom to be 0, and that will cause the following error:
On Chrome:
Cannot read property '_href' of undefined
On Firefox:
refList.UrlAlias[0] is undefined
Steps to reproduce:
Edit vendor/ezsystems/studio-ui-bundle/Resources/config/yui.yml to add querystring-stringify as follows:
ezs-studionavigationhubplugin: requires: ['ez-viewservicebaseplugin', 'ezs-dynamicnavigationitemview', 'ez-pluginregistry', 'querystring-stringify'] dependencyOf: ['ez-navigationhubviewservice'] path: %ezstudioui.public_dir%/js/views/services/plugins/ezs-studionavigationhubplugin.js