|
|
@ -0,0 +1,21 @@ |
|
|
|
import React from "react"; |
|
|
|
import { useParams } from "react-router-dom"; |
|
|
|
import WebpageBanner from "../components/webpage_container/WebpageBanner"; |
|
|
|
|
|
|
|
function RedirectPage() { |
|
|
|
const { url, infoKey } = useParams(); // Get the URL parameter |
|
|
|
const decodedUrl = decodeURIComponent(url); // Decode the URL parameter |
|
|
|
|
|
|
|
return ( |
|
|
|
<div> |
|
|
|
<WebpageBanner translationKey={infoKey} /> |
|
|
|
<iframe |
|
|
|
src={decodedUrl} |
|
|
|
style={{ width: "100%", height: "700px", border: "none" }} |
|
|
|
title="Embedded Content" |
|
|
|
/> |
|
|
|
</div> |
|
|
|
); |
|
|
|
} |
|
|
|
|
|
|
|
export default RedirectPage; |