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

mindmap macro fails to generate a https url

    XMLWordPrintable

Details

    • mindmap macro, https, patch

    Description

      mindmap macro is only creating urls with http.
      Here is a patch to fix this problem.

      — macros.vm.orig 2008-06-27 14:50:32.000000000 +0200
      +++ macros.vm 2008-06-27 14:59:06.000000000 +0200
      @@ -264,7 +264,7 @@
      #set($mmurl = $mindmap)
      #else
      #set($mmurl1 = $doc.getAttachmentURL($mindmap,"download"))
      -#set($mmurl = "http://${request.serverName}:${request.serverPort}${mmurl1}")
      +#set($mmurl = "${request.scheme}://${request.serverName}:${request.serverPort}${mmurl1}")
      #end
      #end
      <applet code="freemind.main.FreeMindApplet.class" archive="${request.contextPath}/freemind/freemind.jar" width="${width}" height="${height}">

      Attachments

        Activity

          People

            vmassol Vincent Massol
            steffen.zieger Steffen Zieger
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: