Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-4211

Cannot edit page containing a redirection

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.0 M3
    • Fix Version/s: None
    • Component/s: WYSIWYG Editor
    • Labels:
      None
    • keywords:
      redirect
    • Development Priority:
      Low
    • Difficulty:
      Hard
    • Similar issues:

      Description

      To reproduce, create a page with this content:

      $response.sendRedirect($xwiki.getURL("Sandbox.WebHome")
      

      Now, since this page redirects it's hard to edit, so manually modify the URL for this page and put "edit" instead of "view". Now you'll be in the wysiwyg editor but the page cannot be editer. If you go in the source tab you'll even see the full HTML for the page you're redirected to.

      I think that's because the wysiwyg editor executes the redirect. That's a difficult and general pb if we have code in velocity that changes things. There might be cases other than the redirect one.

      Any idea of what we can do?

      Not that to be able to edit the page I had to change my user's default editor to be the "text" one.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              vmassol Vincent Massol
              Votes:
              1 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Created:
                Updated:
                Date of First Response: