Browse Source

feat: Added redirect webpage for general links.

master
Denis Thiessen 5 months ago
parent
commit
fa29ec1841
  1. 21
      src/core/RedirectPage.jsx

21
src/core/RedirectPage.jsx

@ -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;
Loading…
Cancel
Save