Sorry this was changed from PowerStore 2 to PowerStore 3.
you where correct in editing the script.
The issue, however is being caused because the page has a gallery on it.
This is causing the script to error and fail to show the gallery.
it will not be possible to pass the gallery page in this way, you will need to use the top level links for this instead of the side navigation.