lib.browserredirect = FLUIDTEMPLATE
lib.browserredirect {
    file = EXT:t3template/Resources/Private/Partials/BrowserRedirect.html
}

lib.browserredirectmenu = HMENU
lib.browserredirectmenu {
    #wrap = <script>|</script>
    /*
    stdWrap.noTrimWrap (
|<script>
|</script>
<script src="/typo3conf/ext/t3template/Resources/Public/JavaScript/browserredirect.js?1547472492" type="text/javascript"></script>
|
    )
    */

    special = language
    special.value = 1,0
    special.normalWhenNoLanguage = 0

    1 = TMENU
    1 {
        NO = 1
        NO {
            stdWrap.cObject = TEXT
            stdWrap.cObject {
                value =  EN || DE
            }
            linkWrap = var browserRedirectPathName|
            doNotLinkIt = 1
            after.cObject = TEXT
            after.cObject {
                stdWrap {
                    #wrap =  = '|';
                    noTrimWrap = | = '|';|
                    typolink {
                        parameter.data = page:uid
                        additionalParams = &L=1 || &L=0
                        addQueryString = 1
                        addQueryString.exclude = L,id,cHash,no_cache,gclid
                        addQueryString.method = GET
                        useCacheHash = 1
                        returnLast = url
                    }
                }
            }
            allStdWrap.noTrimWrap (
|
    ||
            )
        }

        CUR = 1
        CUR {
            doNotShowLink = 1
            doNotLinkIt = 1
        }

        USERDEF1 = 1
        USERDEF1 {
            doNotShowLink = 1
            doNotLinkIt = 1
        }
    }
}
