From version 5.1
edited by Vincent Massol
on 2019/06/26
To version 6.1
edited by Vincent Massol
on 2019/06/26
Change comment: There is no comment for this version

Summary

Details

FAQCode.FAQClass[0]
answer
... ... @@ -26,10 +26,12 @@
26 26  
27 27  = Removing Scripting Redirects =
28 28  
29 -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.
29 +Removing scripting redirects again, once added, [[can prove to be difficult>>https://jira.xwiki.org/browse/XWIKI-4211]]. Indeed when navigating to the page, you're redirected without the possibility to edit the original page containing the redirect.
30 30  
31 -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:
31 +The solution is to handcraft the URL and replace ##view## by ##edit##. However, if your user is using the WYSIWYG editor by default, the redirect script will be executed in edit mode, redirecting you to the target page before you have a chance to remove or alter the redirect...
32 32  
33 +In this case the solutions is to append ##?editor=wiki## to the URL. For example if the page is:
34 +
33 33  {{code language="none"}}
34 34  https://xwiki.example.org/xwiki/bin/view/Main/
35 35  {{/code}}
... ... @@ -41,5 +41,3 @@
41 41  {{/code}}
42 42  
43 43  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.
44 -
45 -Alternatively, you can [[switch your user to be an Advanced User>>Documentation.UserGuide.Features.PageEditing||anchor="HAdvancedMode"]] and then edit in wiki mode.

Get Connected