lib/ngapp/state.helper.js
function goToUrl(url) {
        if (!url) { return; }

        if (_.isArray(url)) {
            url = url.join('/');
        }

        var hasHttp = url.indexOf('http') === 0;
        if (!hasHttp && url.indexOf('/') !== 0) {
            url = '/' + url;
        }

        hasHttp ? $window.location.href = url : $location.path(url);
    }
function goToUrl(url) {
        if (!url) { return; }

        if (_.isArray(url)) {
            url = url.join('/');
        }

        var hasHttp = url.indexOf('http') === 0;
        if (!hasHttp && url.indexOf('/') !== 0) {
            url = '/' + url;
        }

        hasHttp ? $window.location.href = url : $location.path(url);
    }
function goToUrl ( url ) { if ( ! url ) { return ; } if ( _ . isArray ( url ) ) { url = url . join ( '/' ) ; } var hasHttp = url . indexOf ( 'http' ) === 0 ; if ( ! hasHttp && url . indexOf ( '/' ) !== 0 ) { url = '/' + url ; } hasHttp ? $window . location . href = url : $location . path ( url ) ; }
Simply go to the url and allow the state to change
@param url
Simply go to the url and allow the state to change