XWiki Platform
  1. XWiki Platform
  2. XWIKI-7719

Modifing attachments when viewing only attachments for a page with ?viewer=attachments redirects to the Document#Attachments url instead of the ?viewer=attachments


    • Difficulty:
    • Documentation:
    • Documentation in Release Notes:
    • Similar issues:
      XWIKI-7674Attach files problem on Glassfish 3.1.2
      XWIKI-7933Sort document attachments by filename
      XWIKI-286added parameter to save action to allow redirect to edit action instead of view
      XWIKI-4988After deleting an imported attachment the user is redirected to the Global Administration
      XWIKI-816Exception when deleting attachments from the Import page
      XWIKI-1394Login redirect problem
      XWIKI-873A Page created via an attachment gets no creator
      XWIKI-7224XWikiPreferences in view mode does no not redirect to admin mode
      XWIKI-4495Can't delete page with attached image
      XWIKI-7977NullPointerException when viewing history of Page with image - filesystem attachment storage


      To reproduce:

      • go to a page's attachments view (through the viewer), say xwiki/bin/view/Sandbox/WebHome?viewer=attachments
      • upload a new attachment
      • now you're on xwiki/bin/view/Sandbox/WebHome#Attachments instead of back on xwiki/bin/view/Sandbox/WebHome?viewer=attachments

      This is annoying in the following situations:
      1/ when you want to only handle attachments for a page, you're not interested in the content of a page. In this case you might see things that you're not interested in and loose the focus / not find the list of attachments anymore (if you have a big screen and few attachments, the attachments list is all the way at the bottom when it was high up in the top of the page before)
      2/ when you have a different skin applied on the wiki and the attachments tab doesn't exist, therefore #Attachments doesn't make sense. In this case, if you need to make more attachments operations, you need to reput ?viewer=attachments manually at the end of the url every time

      Same happens for ?viewer=attachmentsinline and it can be equally annoying.


        Sergiu Dumitriu added a comment -

        Fixed in 7e29672.

        Sergiu Dumitriu added a comment - Fixed in 7e29672.


          • Assignee:
            Sergiu Dumitriu
            Anca Luca
          • Votes:
            0 Vote for this issue
            1 Start watching this issue


            • Created:
              Date of First Response: