Skip to content

Commit

Permalink
changed replaceAll to replace
Browse files Browse the repository at this point in the history
  • Loading branch information
iAmServerless committed Jul 5, 2020
1 parent 994799d commit c35b561
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pages/[id].js
Expand Up @@ -92,7 +92,7 @@ export async function getStaticProps({params}) {
function Photos({photos, breadcrumb, page}) {
const router = useRouter()
const { objectId } = router.query;
let seoData = objectId? objectId.split('.')[0].replaceAll('_', ' '): '';
let seoData = objectId? objectId.split('.')[0].replace(/_/g, ' '): '';
return <Layout>
<Head>
<title>{`Aahan Sharma ${page} ${seoData} | Scottish High, Gurgaon | G D Goenka La Petite`}</title>
Expand Down

0 comments on commit c35b561

Please sign in to comment.