Details
-
Improvement
-
Resolution: Fixed
-
Major
-
13.10.2
-
None
Description
Current, redirections are only supported for pages based on the presence of a XWiki.RedirectClass in the page. See https://github.com/xwiki/xwiki-platform/blob/69d9428f6c4eb384665346003f3e342abc19c40b/xwiki-platform-core/xwiki-platform-oldcore/src/main/java/com/xpn/xwiki/web/XWikiAction.java#L578 and https://github.com/xwiki/xwiki-platform/blob/69d9428f6c4eb384665346003f3e342abc19c40b/xwiki-platform-core/xwiki-platform-oldcore/src/main/java/com/xpn/xwiki/web/XWikiAction.java#L876
This logic can be modularized by loading a dedicated role and make them redirect the user.
This involves:
- introducing a new role
- move the existing logic to a new component
- use the same logic for moved attachments redirection
Attachments
Issue Links
- blocks
-
XWIKI-1657 Allow to rename and move attachments
- Closed
- relates to
-
DISCUSSION-48 Attachments are not displayed in message when the discussion uses a redirect
- Closed