mirror of
https://github.com/lemeow125/simple-redirect.git
synced 2024-11-17 06:19:28 +08:00
Revert changes. Readd third slug
This commit is contained in:
parent
0032ebfef8
commit
f64c31f7c3
1 changed files with 3 additions and 2 deletions
|
@ -24,7 +24,7 @@ function App() {
|
|||
}
|
||||
function RedirectPage() {
|
||||
const forbid_web_links = true;
|
||||
const { name, slug1, slug2 } = useParams(); // URL Params
|
||||
const { name, slug1, slug2, slug3 } = useParams(); // URL Params
|
||||
const [color, setColor] = useState<CircularProgressColor>("inherit"); // Spinner color
|
||||
const [feedback, setFeedback] = useState(
|
||||
"Opening " + name + " on your mobile device "
|
||||
|
@ -32,7 +32,7 @@ function RedirectPage() {
|
|||
const [error, setError] = useState(false);
|
||||
const [forbidden, setForbidden] = useState(false); // If link is forbidden (HTTP/HTTPS)
|
||||
const [checked, setChecked] = useState(false); // If linked has been checked already
|
||||
const url = name + "://" + slug1 + "/" + slug2; // URL to redirect to
|
||||
const url = name + "://" + slug1 + "/" + slug2 + "/" + slug3; // URL to redirect to
|
||||
function ManualButton() {
|
||||
if (error) {
|
||||
return (
|
||||
|
@ -91,6 +91,7 @@ function RedirectPage() {
|
|||
<view style={{ padding: 16 }} />
|
||||
<h5>{"URL Payload 2:" + slug2}</h5>
|
||||
</view>
|
||||
<h5>{"URL Payload 3:" + slug3}</h5>
|
||||
<h2 style={{ color: "white", textAlign: "center" }}>{feedback}</h2>
|
||||
<ManualButton />
|
||||
</view>
|
||||
|
|
Loading…
Reference in a new issue