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

displayTOC macro call from MailTemplate does not render correctly

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Minor
    • None
    • 16.1.0, 15.10.10
    • Mail
    • None
    • XWiki running in Docker container on Ubuntu 22.04 behind reverse proxy using HTTPS on WAN side of reverse proxy and HTTP on LAN side of reverse proxy.
    • Unknown
    • N/A
    • N/A

    Description

      When a notification email is sent, the macro `displayTOC` is called from the template `bin/edit/XWiki/Notifications/MailTemplate`. The TOC is rendered incorrectly, namely, the title of the page that was edited and the link to that page. The title is rendered as a non-expanded variable (i.e. `$title`) and the link is an hash link like `#m_-6751499713143034006_924158579-1710829162000-oT0D49dY`, but gets interpreted email clients (GMail and Outlook) as, for example, `https://mail.google.com/mail/u/0/#m_-6751499713143034006_924158579-1710829162000-oT0D49dY`. In the attached photo, I would have expected the TOC to have the same text/link as the `test` page, which was the only page edited.

      Attachments

        Issue Links

          Activity

            People

              surli Simon Urli
              git-n-pissed git-n-pissed
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: