# Adding Links in the Navbar

**URL:** <https://discourse.sst.dev/t/adding-links-in-the-navbar/141>\
**Category:** Chapter Comments\
**Created:** [May 9, 2018, 8:06pm UTC](https://discourse.sst.dev/t/adding-links-in-the-navbar/141 "2018-05-09T20:06:21Z")\
**Posts on this page:** 3\
**Page:** 2

<div class="post-metadata">

**Author:** ![gravelfox](https://yyz2.discourse-cdn.com/flex032/user_avatar/discourse.sst.dev/gravelfox/32/467_2.png) [@gravelfox](https://discourse.sst.dev/u/gravelfox)\
**Post date:** [April 25, 2019, 8:15pm UTC](https://discourse.sst.dev/t/adding-links-in-the-navbar/141/21 "2019-04-25T20:15:03Z")

</div>

I have spent HOURS trying to figure this out. Bless you. You have truly made my week with the LinkContainer bit.

---

<div class="post-metadata">

**Author:** ![Edgy-Toast](https://yyz2.discourse-cdn.com/flex032/user_avatar/discourse.sst.dev/edgy-toast/32/1342_2.png) [@Edgy-Toast](https://discourse.sst.dev/u/Edgy-Toast)\
**Post date:** [May 18, 2022, 7:18pm UTC](https://discourse.sst.dev/t/adding-links-in-the-navbar/141/22 "2022-05-18T19:18:07Z")

</div>

In this section, I’m having an odd experience. It seems that once I add my LinkContainer to prevent refreshing, the browser will no longer update the container on link change. I have to manually refresh the page to get the message “Sorry, page not found!” Then, to return to the home page, I have to click the home button and manually refresh again. Any advice?

While I have you, I am also curious as to why we do not want to refresh the page each time. Is it because it would have to re-open a container and output everything again from AWS each time?

---

<div class="post-metadata">

**Author:** ![Edgy-Toast](https://yyz2.discourse-cdn.com/flex032/user_avatar/discourse.sst.dev/edgy-toast/32/1342_2.png) [@Edgy-Toast](https://discourse.sst.dev/u/Edgy-Toast)\
**Post date:** [May 18, 2022, 10:08pm UTC](https://discourse.sst.dev/t/adding-links-in-the-navbar/141/23 "2022-05-18T22:08:48Z")

</div>

Okay, weird…but I am happy it happened. I would love an explanation as to what happened here. In a later section, I did not have a useHistory in react-router-dom: To solve this, I changed my react-router-dom version in package.json as 5.1.2, and ran npm install again. It solved both issues at once. Beautiful! But any explanation?

[Previous page](https://discourse.sst.dev/t/adding-links-in-the-navbar/141.md?page=1)
