forked from EVOgeek/Vmeda.Online
		
	Merge pull request #2904 from dpalou/MOBILE-3715
MOBILE-3715 iab: Fix load previous page after open external app
This commit is contained in:
		
						commit
						3c176311b3
					
				| @ -110,6 +110,7 @@ export class AppComponent implements OnInit, AfterViewInit { | ||||
|         // Check URLs loaded in any InAppBrowser.
 | ||||
|         CoreEvents.on(CoreEvents.IAB_LOAD_START, (event) => { | ||||
|             // URLs with a custom scheme can be prefixed with "http://" or "https://", we need to remove this.
 | ||||
|             const protocol = CoreUrlUtils.getUrlProtocol(event.url); | ||||
|             const url = event.url.replace(/^https?:\/\//, ''); | ||||
| 
 | ||||
|             if (CoreCustomURLSchemes.isCustomURL(url)) { | ||||
| @ -135,7 +136,7 @@ export class AppComponent implements OnInit, AfterViewInit { | ||||
|                         CoreUtils.closeInAppBrowser(); | ||||
|                     } | ||||
|                 } else { | ||||
|                     this.lastInAppUrl = url; | ||||
|                     this.lastInAppUrl = protocol ? `${protocol}://${url}` : url; | ||||
|                 } | ||||
|             } | ||||
|         }); | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user