Skip to content
  • Oliver Hader's avatar
    [TASK] Avoid inline JavaScript generated by BackendUtility:viewOnClick · f16b4787
    Oliver Hader authored and Benni Mack's avatar Benni Mack committed
    Inline JavaScript produced by BackendUtility:viewOnClick is substituted
    with markup based instructions and static JavaScript event handlers.
    // basically delivers
    BackendUtility::viewOnClick($pageId, $backPath, $rootLine, $section,
        $viewUri, $getVars, $switchFocus);
    can be substituted with e.g.
    \TYPO3\CMS\Backend\Routing\PreviewUriBuilder::create($pageId, $viewUri)
            PreviewUriBuilder::OPTION_SWITCH_FOCUS => $switchFocus,
    which results in the following HTML data attributes
    (data can be retrieved as array of complete element as well)
    Resolves: #91123
    Releases: master
    Change-Id: Iedd9bfe60827977677ee68e2c948c63e359abf84
    Tested-by: default avatarAndreas Fernandez <>
    Tested-by: default avatarTYPO3com <>
    Tested-by: default avatarBenni Mack <>
    Reviewed-by: default avatarAndreas Fernandez <>
    Reviewed-by: default avatarBenni Mack <>