src/Server/js/caliban.js
/**
         * We do not check whether URL contains already url parameter, please use removeUrlParameter() if needed
         * before calling this method.
         * This method makes sure to append URL parameters before a possible hash. Will escape (encode URI component)
         * the set name and value
         */
We do not check whether URL contains already url parameter, please use removeUrlParameter() if needed
before calling this method.
This method makes sure to append URL parameters before a possible hash. Will escape (encode URI component)
the set name and value
We do not check whether URL contains already url parameter please use removeUrlParameter () if needed before calling this method . This method makes sure to append URL parameters before a possible hash . Will escape ( encode URI component ) the set name and value
function addUrlParameter(url, name, value) {
            url = String(url);
            if (!value) {
                value = '';
            }
            var hashPos = url.indexOf('#');
            var urlLength = url.length;
            if (hashPos === -1) {
                hashPos = urlLength;
            }
            var baseUrl = url.substr(0, hashPos);
            var urlHash = url.substr(hashPos, urlLength - hashPos);
            if (baseUrl.indexOf('?') === -1) {
                baseUrl += '?';
            } else if (baseUrl.charAt(baseUrl.length - 1) !== '?') {
                baseUrl += '&';
            }
            return baseUrl + encodeWrapper(name) + '=' + encodeWrapper(value) + urlHash;
        }
function addUrlParameter ( url , name , value ) { url = String ( url ) ; if ( ! value ) { value = '' ; } var hashPos = url . indexOf ( '#' ) ; var urlLength = url . length ; if ( hashPos === - 1 ) { hashPos = urlLength ; } var baseUrl = url . substr ( 0 , hashPos ) ; var urlHash = url . substr ( hashPos , urlLength - hashPos ) ; if ( baseUrl . indexOf ( '?' ) === - 1 ) { baseUrl += '?' ; } else if ( baseUrl . charAt ( baseUrl . length - 1 ) !== '?' ) { baseUrl += '&' ; } return baseUrl + encodeWrapper ( name ) + '=' + encodeWrapper ( value ) + urlHash ; }
We do not check whether URL contains already url parameter, please use removeUrlParameter() if needed
 before calling this method.
We do not check whether URL contains already url parameter please use removeUrlParameter () if needed before calling this method .
// nothing to if ends with ?