Fix mobile routing to tx push and test pages
This commit is contained in:
		
							parent
							
								
									d8cfc6e32d
								
							
						
					
					
						commit
						a76d6c2949
					
				| @ -13,7 +13,8 @@ class GuardService { | |||||||
| 
 | 
 | ||||||
|   trackerGuard(route: Route, segments: UrlSegment[]): boolean { |   trackerGuard(route: Route, segments: UrlSegment[]): boolean { | ||||||
|     const preferredRoute = this.router.getCurrentNavigation()?.extractedUrl.queryParams?.mode; |     const preferredRoute = this.router.getCurrentNavigation()?.extractedUrl.queryParams?.mode; | ||||||
|     return (preferredRoute === 'status' || (preferredRoute !== 'details' && this.navigationService.isInitialLoad())) && window.innerWidth <= 767.98; |     const path = this.router.getCurrentNavigation()?.extractedUrl.root.children.primary.segments; | ||||||
|  |     return (preferredRoute === 'status' || (preferredRoute !== 'details' && this.navigationService.isInitialLoad())) && window.innerWidth <= 767.98 && !(path.length === 2 && ['push', 'test'].includes(path[1].path)); | ||||||
|   } |   } | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user