Every line of 'redirectto in angular' code snippets is scanned for vulnerabilities by our powerful machine learning engine that combs millions of open source libraries, ensuring your JavaScript code is secure.
62 function redirectIfNecessary($data) { 63 // If $data is JSON & ajaxredirect value is valid 64 if ($data.constructor === {}.constructor && typeof $data.ajaxredirect !== 'undefined' 65 && $data.ajaxredirect != null && $data.ajaxredirect !== "") { 66 window.location = $data.ajaxredirect; 67 return false; 68 } 69 70 if (!($data instanceof jQuery)) { 71 return true; 72 } 73 74 if ($data.attr('id') == redirectUrlDiv) { 75 var redirectUrl = $data.text(); 76 if (redirectUrl != null && redirectUrl !== "") { 77 window.location = redirectUrl; 78 return false; 79 } 80 } 81 82 return true; 83 }
113 private redirectToHome(): boolean { 114 this.router.navigate(['/']); 115 return false; 116 }
313 function goToAngularDetails(params) { 314 return detailRoute + 'OS::Glance::Image/' + params.id; 315 }
97 redirectTo(page, query = {}) { 98 let url = page + `?${Object.keys(query).map(key => `${key}=${query[key]}`).join('&')}`; 99 return wx.redirectTo({ url }); 100 }
35 redirectTo(target: string, $event: any) { 36 $event.preventDefault(); 37 this.router.navigate([target]); 38 }
30 private redirect() { 31 this.$location.path('/auth/login'); 32 this.$location.search({ uri: '/' }); 33 this.$location.replace(); 34 }
149 redirectToHome() { 150 this.props.history.push("/"); 151 }
14 export function redirectTo (options = {}) { 15 return qappNavigate(options, 'replace') 16 }
10 function redirectToLoginPage(event, next, current) { 11 if (event && next && current) { 12 // already logged in, no redirect needed 13 } else { 14 // fallback 15 RedirectService.redirect(loginHandlerSpring); 16 } 17 }
519 function redirectTo(url) { 520 setBubbleText(t('redirecting', { hostName: util.hostNameFromUri(url) })); 521 addClass(elements.bubble, 'one-line'); 522 setTimeout(function() { 523 document.location = url; 524 }, 500); 525 }