Fix login redirect problems. (#270)
After login, my browser gets a 404 for `/wireguard`. `wireguard` might
not be explicitly set by `BASE_PATH`, so just use the `{{.basePath}}`
instead.
Fixes #259.
			
			
This commit is contained in:
		
							parent
							
								
									de6ad05577
								
							
						
					
					
						commit
						d32064dd0e
					
				|  | @ -85,7 +85,7 @@ | ||||||
|         if (nextURL) { |         if (nextURL) { | ||||||
|             window.location.href = nextURL; |             window.location.href = nextURL; | ||||||
|         } else { |         } else { | ||||||
|             window.location.href = '/wireguard/'; |             window.location.href = '/{{.basePath}}'; | ||||||
|         }  |         }  | ||||||
|     } |     } | ||||||
| </script> | </script> | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue