-
Notifications
You must be signed in to change notification settings - Fork 418
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
13 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,16 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta http-equiv="refresh" content="0; url='https://pipx.pypa.io'" /> | ||
</head> | ||
<body> | ||
<p>You will be redirected to https://pipx.pypa.io soon!</p> | ||
</body> | ||
<head> | ||
<meta http-equiv="refresh" content="5"> | ||
</head> | ||
<body> | ||
<script> | ||
var urlObject = new URL(window.location.href); | ||
var pathParts = urlObject.pathname.split("/"); | ||
var lastPart = pathParts[pathParts.length - 1]; | ||
var redirectUrl = `https://pipx.pypa.io/stable/${lastPart}`; | ||
document.querySelector('meta[http-equiv="refresh"]').content = `5; URL=${redirectUrl}`; | ||
</script> | ||
<p>You will be redirected to https://pipx.pypa.io soon!</p> | ||
</body> | ||
</html> |