Every line of 'navigatebyurl' 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.
24 goTo(url){ 25 let notFound=true; 26 for (let i = 0; i < this.routes.length; i++) { 27 const route = this.routes[i]; 28 const cleanUrl=url.substring(0, url.indexOf('#')); 29 if(cleanUrl===route.pattern || url===route.pattern){ 30 this.setActiveRoute(url,route); 31 notFound=false; 32 break; 33 } 34 } 35 36 if(notFound){ 37 //this.goTo(this.notFound); 38 } 39 }
2 navigate(url: string) { 3 return url; 4 }
71 private navigate(url: string): void { 72 if (url.startsWith('http')) { 73 window.location.href = url; 74 } else { 75 this.router.navigateByUrl(url); 76 } 77 }
6 function navigate(p, options) { 7 if (!options || options === true) { 8 options = { 9 trigger: options 10 }; 11 } 12 13 p = p || ''; 14 if (this.path === p) { 15 return; 16 } 17 18 if (options.trigger) { 19 this.loadUrl(p); 20 } 21 }
293 function navigate(url: string): Promise<*> { 294 return tabTarget.navigateTo({ url }); 295 }
998 oldNavigateToUrl(url) { 999 this.oldNavigateTo("e.force:navigateToURL", { 1000 "url": url, 1001 }) 1002 }
10 navigateByUrl(url: string) { return url; }
26 navigate(hash, options) { 27 this.logger.info("navigate::" + hash); 28 this.router.navigate(hash, options); 29 }
25 async navigate() { 26 this.color = 'purple'; 27 const h = await this.hie 28 .get$(this.id) 29 .pipe(take(1)) 30 .toPromise(); 31 this.router.navigate([h.depth < 4 ? '/h' : '/t', this.id]); 32 }
717 export function navigateCrossDomain(url: string): void { 718 ensureInitialized( 719 frameContexts.content, 720 frameContexts.settings, 721 frameContexts.remove, 722 frameContexts.task 723 ); 724 725 let messageId = sendMessageRequest(parentWindow, "navigateCrossDomain", [ 726 url 727 ]); 728 callbacks[messageId] = (success: boolean) => { 729 if (!success) { 730 throw new Error( 731 "Cross-origin navigation is only supported for URLs matching the pattern registered in the manifest." 732 ); 733 } 734 }; 735 }