Every line of 'jquery navigate to url' 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.
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 }
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 }
71 public async goto(url: string): Promise { 72 return this.browser.driver.navigate().to(url); 73 }
293 function navigate(url: string): Promise<*> { 294 return tabTarget.navigateTo({ url }); 295 }
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 }
151 navigating (url) { 152 // console.log('CDP navigate', url) 153 this.client.Page.navigate({url}); // Note: workaround for https://github.com/cyrus-and/chrome-remote-interface/issues/324 154 return this.client.Page.navigate({url}); 155 }
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 }
34 navigate(urlObj) { 35 const store = this.flux.getStore(storeName); 36 _.dev(() => store.set.should.be.a.Function && 37 urlObj.should.be.an.Object 38 ); 39 return store.set('/History/location', urlObj); 40 }
67 goto(url) { 68 this.props.pushState(url); 69 this.props.close(); 70 }
998 oldNavigateToUrl(url) { 999 this.oldNavigateTo("e.force:navigateToURL", { 1000 "url": url, 1001 }) 1002 }