-
Type:
Bug
-
Resolution: Unresolved
-
Priority:
Low
-
None
-
Affects Version/s: 7.19.26, 9.0.0
-
Component/s: Core - Workbox
-
Severity 3 - Minor
Issue Summary
This is reproducible on Data Center: (yes)
NotificationBuilder() when building a notification, for both .itemUrl() and .url() method the context path is missing for these urls when clicked in Notification window.
For example
Notification notification = new NotificationBuilder() .application(PLUGIN_KEY) .entity(ENTITY_NAME) .action(SHARE_ACTION_NAME) .title(TITLE).itemTitle(TITLE) .itemUrl("/download/resources/com.myplugin:share-webresources/images/icon.png") .url("/myplugin/viewdata.action") .itemIconUrl("/myplugin/icon.png") .globalId(ID).groupingId(ID) .createNotification();
Steps to Reproduce
- Create a P2 plugin and follow the steps in Posting notifications in Confluence (will need to be updated for Platform 7 and Confluence 9.x)
- Add the .itemUrl() and .url() in the NotificationBuilder()
- Generate a notification
Expected Results
The .itemUrl() and .url() include the context path in the URL.
Actual Results
The .itemUrl() and .url() do not include the context path in the URL.
Workaround
You can try using the {
{SettingsManager}] to get the full path of the server as documented in