The portal server supports the ability to open a given workspace and focus on a given portlet from a hyperlink in email, web page, and so on. Also, when one navigates to a workspace, the URL changes so the back button is fully supported.
Hash in URL
The Hash character (also known as the 'fragment indicator') is used to go to "anchors" (for example, https://en.wikipedia.org/wiki/Fender_Stratocaster#Fender_1985-present), it is more recently used to store navigable state in many modern sites -- gmail makes heavy use of it, for instance.
To do this, the usual
<serverRoot>/ui/portal URL has a
workspaceRef.nameis the name attribute of a workspaceRef in the
portletRef.namerefers to the value of the
nameattribute of a PortletRef in the appropriate
portletRefname is optional. If it is not there, the navigation goes to the workspace. A portlet is required to set context with a context parameter.
In the example above, entering
http://localhost:7080/training/ui/portal#Contacts/refPersonBio takes you to the bio portlet on the Contacts workspace.
Alternative ways of finding the
- Look in NexJ Studio in the portal and workspace elements to find the appropriate names.
- Use the script recording. For this approach, see Recording and Playback. Enable recording, record a script, click on the portlet you want the names of, stop the script, export the script, and press F12. You should see something like:
refPersonJournalActivitiesare the names you are looking for.
The path entries are followed by any context parameters. These are separated from the path with a semicolon as above, and are a context name and a context value. For example,
EntityId=10D3768FBB32354DD4A413095F2CEB5CC1 as in
Query string parameters
As an argument, pass “r”, without any value to replace the URL with a random r, so that changes to the URL are detected if identical URLs should otherwise trigger the navigation.