Details
- 
    
Bug
 - 
    Resolution: Duplicate
 - 
    
Minor
 - 
    None
 - 
    16.1.0, 15.10.10
 - 
    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
- duplicates
 - 
                    
XWIKI-20187 The TOC in notifications emails displays "$title" instead of the actual page title
-         
 - Closed
 
 -