src/Server/js/caliban.js
/*
         * Fix-up URL when page rendered from search engine cache or translated page
         */
Fix-up URL when page rendered from search engine cache or translated page
Fix - up URL when page rendered from search engine cache or translated page
function urlFixup(hostName, href, referrer) {
            if (!hostName) {
                hostName = '';
            }
            if (!href) {
                href = '';
            }
            if (hostName === 'translate.googleusercontent.com') {
                if (referrer === '') {
                    referrer = href;
                }
                href = getUrlParameter(href, 'u');
                hostName = getHostName(href);
            } else if (
                hostName === 'cc.bingj.com' || 
                hostName === 'webcache.googleusercontent.com' || 
                hostName.slice(0, 5) === '74.6.'
            ) {
                href = documentAlias.links[0].href;
                hostName = getHostName(href);
            }
            return [hostName, href, referrer];
        }
function urlFixup ( hostName , href , referrer ) { if ( ! hostName ) { hostName = '' ; } if ( ! href ) { href = '' ; } if ( hostName === 'translate.googleusercontent.com' ) { if ( referrer === '' ) { referrer = href ; } href = getUrlParameter ( href , 'u' ) ; hostName = getHostName ( href ) ; } else if ( hostName === 'cc.bingj.com' || hostName === 'webcache.googleusercontent.com' || hostName . slice ( 0 , 5 ) === '74.6.' ) { href = documentAlias . links [ 0 ] . href ; hostName = getHostName ( href ) ; } return [ hostName , href , referrer ] ; }
Fix-up URL when page rendered from search engine cache or translated page
Fix - up URL when page rendered from search engine cache or translated page
// Google // Bing // Google // Yahoo (via Inktomi 74.6.0.0/16)