---
title: "Comment by Nemanja Mitic on \"How to add SEO Meta tags in your Next.js apps\" | Hashnode"
description: "Can I set url with Javasript or it must be hardcoded or done server-side? Will it affect SEO? &lt; meta property = &quot;og:url&quot; content = {window?.locatio"
url: "https://hashnode.com/posts/seo-in-nextjs-apps/62531f1d92d73e7055c1a0f3/comment/62b195a2884fc0770c0cdb3c"
---

[Discussion](https://hashnode.com/posts/seo-in-nextjs-apps/62531f1d92d73e7055c1a0f3)

Comment [How to add SEO Meta tags in your Next.js apps](https://hashnode.com/posts/seo-in-nextjs-apps/62531f1d92d73e7055c1a0f3)

[Nemanja Mitic](https://hashnode.com/@nemanjam)

[Jun 21, 2022](https://hashnode.com/posts/seo-in-nextjs-apps/62531f1d92d73e7055c1a0f3/comment/62b195a2884fc0770c0cdb3c)

Can I set url with Javasript or it must be hardcoded or done server-side? Will it affect SEO?

```
<meta property="og:url" content={window?.location.href} />
```

[Caleb Olojo](https://hashnode.com/@Seven_)

[Jun 21, 2022](https://hashnode.com/posts/seo-in-nextjs-apps/62531f1d92d73e7055c1a0f3/comment/62b195a2884fc0770c0cdb3c#reply-62b1fe6b94003a788976e942)

I think it'll be better to just hard code it, but if you think the url may be dynamic sometimes, you can use JavaScript to handle it.

I don't have an answer to whether it can be done on the server side.

But, I think you should checkout Monica Lent's SEO for Devs course if you want a proper understanding.
