fedimbed: fix relative redirects
This commit is contained in:
		
							parent
							
								
									8e61b5da82
								
							
						
					
					
						commit
						a0a218ce67
					
				
					 1 changed files with 3 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -104,6 +104,9 @@ async function processUrl(msg, url) {
 | 
			
		|||
        },
 | 
			
		||||
        redirect: "manual",
 | 
			
		||||
      }).then((res) => res.headers.get("location"));
 | 
			
		||||
      if (url.startsWith("/")) {
 | 
			
		||||
        url = urlObj.origin + url;
 | 
			
		||||
      }
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    if (PATH_REGEX.pleroma2.test(urlObj.pathname)) {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue