From 0032ebfef8d3b39794abda54797cab526b195428 Mon Sep 17 00:00:00 2001 From: Keannu Bernasol Date: Sun, 23 Jul 2023 22:03:25 +0800 Subject: [PATCH] Only use two slug fields --- src/App.tsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index c6ab104..d7ef455 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -24,7 +24,7 @@ function App() { } function RedirectPage() { const forbid_web_links = true; - const { name, slug1, slug2, slug3 } = useParams(); // URL Params + const { name, slug1, slug2 } = useParams(); // URL Params const [color, setColor] = useState("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 + "/" + slug3; // URL to redirect to + const url = name + "://" + slug1 + "/" + slug2; // URL to redirect to function ManualButton() { if (error) { return ( @@ -91,7 +91,6 @@ function RedirectPage() {
{"URL Payload 2:" + slug2}
-
{"URL Payload 3:" + slug3}

{feedback}