Last modified by Vincent Massol on 2019/06/26

From version 3.1
edited by Gunter Ohrner
on 2019/06/26
Change comment: There is no comment for this version
To version 4.1
edited by Vincent Massol
on 2019/06/26
Change comment: There is no comment for this version

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.GOhrner
1 +XWiki.VincentMassol
FAQCode.FAQClass[0]
answer
... ... @@ -6,32 +6,34 @@
6 6  
7 7  Modifying or deleting the [[different types of automatic redirects>>FAQ.Adding a redirect]] XWiki supports require different approaches.
8 8  
9 -= Removing Macro-based Redirects =
9 += Removing Scripting Redirects =
10 10  
11 -Removing Macro-based redirects again, once added, [[can prove to be difficult if your default editor is the WYSIWYG CKeditor>>https://jira.xwiki.org/browse/XWIKI-4211]]. In this case, the macro will even be executed in edit mode, redirecting you do to the target page before you have a chance to remove or alter the redirect.
11 +Removing scripting redirects again, once added, [[can prove to be difficult if your default editor is the WYSIWYG editor>>https://jira.xwiki.org/browse/XWIKI-4211]]. In this case, the script will even be executed in edit mode, redirecting you do to the target page before you have a chance to remove or alter the redirect.
12 12  
13 -So if your default editor is the WYSIWYG editor, and you want to edit a redirect on the following page:
13 +So if your default editor is the WYSIWYG editor, and you want to edit a redirect, append ##?editor=wiki## to the URL. For example if the page is:
14 14  
15 15  {{code language="none"}}
16 16  https://xwiki.example.org/xwiki/bin/view/Main/
17 17  {{/code}}
18 18  
19 -You manually have to change the URL as follows:
19 +Then you manually have to change the URL as follows:
20 20  
21 21  {{code language="none"}}
22 22  https://xwiki.example.org/xwiki/bin/edit/Main/?editor=wiki
23 23  {{/code}}
24 24  
25 -This will cause the wiki text editor to open with the page's source code and the redirect can be edited or removed without any problems, even if your default editor is the WYSIWYG / CK editor.
25 +This will cause the wiki text editor to open with the page's source code and the redirect can be edited or removed without any problems.
26 26  
27 -= Removing ##XWiki.RedirectClass## Based Redirects (e.g. Automatically Generated Redirects) =
27 +Alternatively, you can [[switch your user to be an Advanced User>>Documentation.UserGuide.Features.PageEditing||anchor="HAdvancedMode"]] and then edit in wiki mode.
28 28  
29 -When moving/renaming pages, you have the option to create redirects for the old location so that users hitting the old page would be redirected to the new location.
29 += Removing XObject Redirects =
30 30  
31 -However, we're currently [[missing a Redirect Management UI>>https://jira.xwiki.org/browse/XWIKI-13385]] to be able to see all redirects and perform actions on them, such as removing some redirects.
31 +These are redirects implemented by adding an XObject of class ##XWiki.RedirectClass##.
32 32  
33 -While waiting for a proper Redirect Management UI, here's a workaround:
33 +When moving/renaming pages, you have the option to create redirects for the old location so that users hitting the old page would be redirected to the new location. When doing so, XWiki adds an XObject of class ##XWiki.RedirectClass## to the page.
34 34  
35 +We're currently [[missing a Redirect Management UI>>https://jira.xwiki.org/browse/XWIKI-13385]] to be able to see all redirects and perform actions on them, such as removing some redirects. While waiting for a proper Redirect Management UI, here's a workaround:
36 +
35 35  * Turn on [["hidden" documents in your profile preferences>>extensions:Extension.User Profile Application||anchor="HUserPreferences"]]
36 36  * [[Navigate>>FAQ.How can I navigate to a given page]] to the ##XWiki.RedirectClass## page in your wiki. For example: ##http://localhost:8080/xwiki/bin/view/XWiki/RedirectClass####
37 37  * This will list all redirects found on your wiki, with the ability to delete each page (you'll need to have the proper right to see the "delete" action of course).

Get Connected