# Page not found for route "/login"

**URL:** <https://answers.netlify.com/t/page-not-found-for-route-login/24246>\
**Category:** Support\
**Tags:** deployment\
**Created:** [October 9, 2020, 1:17pm UTC](https://answers.netlify.com/t/page-not-found-for-route-login/24246 "2020-10-09T13:17:38Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![luke](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/luke/32/39_2.png) [@luke](https://answers.netlify.com/u/luke)\
**Post date:** [October 14, 2020, 3:10am UTC](https://answers.netlify.com/t/page-not-found-for-route-login/24246/4 "2020-10-14T03:10:29Z")

</div>

Hi, @Nyosky. This is a common issue and there is definitely a solution!

If I click on “Portfolio” the URL changes to `https://optimistic-neumann-70f749.netlify.app/portfolio`. However, if I copy/paste that URL into the address bar (or click on [this link](https://optimistic-neumann-70f749.netlify.app/portfolio)), the page is a 404 “not found”.

We have a support guide that covers this here:

> [@\[Support Guide\] Direct links to my single page app (SPA) don't work](https://answers.netlify.com/t/support-guide-direct-links-to-my-single-page-app-spa-dont-work/126):
>
> Last reviewed by Netlify Support - August, 2023 If you’re building a Single Page Application (SPA), or an app that manages its own routes (url paths), you’ll want to add a \_redirects file to your [publish directory](https://docs.netlify.com/configure-builds/overview/#definitions-1) with the following line to take advantage of browser history pushstate: /\* /index.html 200 You can read more information in our docs, which can be found [here](https://docs.netlify.com/routing/redirects/rewrites-proxies/#history-pushstate-and-single-page-apps).

To summarize, there is a “Redirect” rule added to the site that always routes all URLs to index.html. Once that is done your site’s javascript will handle the “client side routing” just like it does when you click on a link on the page.

If that doesn’t fix it or if there are any questions about this solution, please let us know.

---

_[View the full topic](https://answers.netlify.com/t/page-not-found-for-route-login/24246)._
