Skip to content

Commit

Permalink
fix url
Browse files Browse the repository at this point in the history
Signed-off-by: Sudhanshu Dasgupta <[email protected]>
  • Loading branch information
sudhanshutech committed Aug 27, 2024
1 parent 5d2496c commit 2d43aee
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/pages/cloud-native-management/meshmap/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,14 @@ import React from "react";
import SEO from "../../../components/seo";

import Meshmap from "../../../sections/Meshmap/index";
const MeshmapPage = ({ location: { search } }) => {
const { teaser: parameter1 = "" } = new URLSearchParams(search);
const teaser = parameter1 === "play";
return <Meshmap teaser={teaser} />;
const MeshmapPage = ({ location }) => {
const params = new URLSearchParams(location.search);
const parameter1 = params.get("teaser");
return (
<>
<Meshmap teaser={parameter1 === "play"} />
</>
);
};
export default MeshmapPage;
export const Head = () => {
Expand Down

0 comments on commit 2d43aee

Please sign in to comment.