This issue has been created
 
 
OpenGraph Application / cid:jira-generated-image-avatar-606ba7c7-f5a1-4086-a43e-15cd4a700b6a OPENGRAPH-7 Open

Scripts present in pages' content get rendered twice

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-eaf3beef-eaa6-4834-a850-c620ee5947eb slauriere created this issue on 14/Aug/25 15:35
 
Summary: Scripts present in pages' content get rendered twice
Issue Type: cid:jira-generated-image-avatar-606ba7c7-f5a1-4086-a43e-15cd4a700b6a Bug
Affects Versions: 1.2.1
Assignee: Unassigned
Created: 14/Aug/25 15:35
Priority: cid:jira-generated-image-static-major-d77237f8-c4da-4ed2-9e89-e7d763dd19f1 Major
Reporter: slauriere
Description:

Steps to reproduce

  • Install the OpenGraph extension
  • Create a page XWiki.Logger containing the following code:
{{velocity}}
#set ($logger = $services.logging.getLogger('debug'))
$logger.warn('Execution of script present in XWiki.Logger')
{{/velocity}}
  • Visit page `XWiki.Logger`
  • Inspect the log

Actual result

The log contains twice the debug log "Execution of script present in XWiki.Logger" on each page view, while the log should be present just once.