Links that are made with directtool do not work correctly in the PDA portal. The user is taken to the full portal instead.
Steps to reproduce
- Log in from a mobile device.
- Select a site.
- Select Message Center Notifications.
- Select 'New Messages' link or 'New in Forums' link.
User is taken to the correct place in the relevant tool, within the PDA portal.
User is taken to the correct place in the relevant tool, however they are no longer in the PDA portal, they are in the full portal.
The DirectToolHandler handles the URL correctly, however then calls portal.forwardPortal which is implemented as SkinnableCharonPortal.forwardPortal. In this method is the following:
This means that the URL will always be prefixed by /portal as that is the URL that is configured in sakai.properties. It does not take into account that the specific user might be on the PDA portal.
Add a check in here to see if the user is on the PDA portal and add /pda/ in between, so it would end up looking like:
This is a continuation of