Skip to content

Commit

Permalink
Merge pull request #5846 from sudhanshutech/fix/url
Browse files Browse the repository at this point in the history
fix query url
  • Loading branch information
vishalvivekm authored Aug 27, 2024
2 parents 5d2496c + 2d43aee commit 5f09667
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 5f09667

Please sign in to comment.