forked from EVOgeek/Vmeda.Online
		
	MOBILE-4061 behat: Fix custom url with path on root
This commit is contained in:
		
							parent
							
								
									d75e876cad
								
							
						
					
					
						commit
						2bb3ff81e1
					
				| @ -512,9 +512,9 @@ class behat_app_helper extends behat_base { | |||||||
| 
 | 
 | ||||||
|         // Generate custom URL.
 |         // Generate custom URL.
 | ||||||
|         $parsed_url = parse_url($CFG->behat_wwwroot); |         $parsed_url = parse_url($CFG->behat_wwwroot); | ||||||
|         $domain = $parsed_url['host']; |         $domain = $parsed_url['host'] ?? ''; | ||||||
|         $rootpath = $parsed_url['path']; |         $rootpath = $parsed_url['path'] ?? ''; | ||||||
|         $url = $this->get_mobile_url_scheme() . "://$username@$domain/$rootpath?token=$token&privatetoken=$privatetoken"; |         $url = $this->get_mobile_url_scheme() . "://$username@$domain$rootpath?token=$token&privatetoken=$privatetoken"; | ||||||
| 
 | 
 | ||||||
|         if (!empty($path)) { |         if (!empty($path)) { | ||||||
|             $url .= '&redirect='.urlencode($CFG->behat_wwwroot.$path); |             $url .= '&redirect='.urlencode($CFG->behat_wwwroot.$path); | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user