# Redirect with Angular 8 not working

**URL:** <https://answers.netlify.com/t/redirect-with-angular-8-not-working/5964>\
**Category:** Support\
**Tags:** redirects\
**Created:** [December 8, 2019, 8:39am UTC](https://answers.netlify.com/t/redirect-with-angular-8-not-working/5964 "2019-12-08T08:39:51Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hordon13](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/hordon13/32/4698_2.png) [@Hordon13](https://answers.netlify.com/u/Hordon13)\
**Post date:** [December 8, 2019, 8:39am UTC](https://answers.netlify.com/t/redirect-with-angular-8-not-working/5964/1 "2019-12-08T08:39:51Z")

</div>

Hey!

I have an Angular SPA that I would like to deploy with Netlify. My site goes live like a charm but when I hit refresh on any page it redirects to Page Not Found. I have read the documentation where it claimed I should use redirects since I use Angular Routing in my app.

So I have created a `_redirects` file in my src folder with `/* /index.html 200` in it that should navigate all route to the index file so the Angular Router could handle the rest, and I added `"src/_redirects"` to my `angular.json/assets` array.

But when I check to Deploy Summary I see that **No redirect rules processed**. Am I missing something?

Thank you in advance!

---

<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:** [December 9, 2019, 10:47am UTC](https://answers.netlify.com/t/redirect-with-angular-8-not-working/5964/2 "2019-12-09T10:47:06Z")

</div>

Hi, @Hordon13, and welcome to our Netlify community site. I was going to recommend that exact solution:

> <https://github.com/angular/angular-cli/pull/2570>
>
> This PR enables the \`assets\` entry in \`angular-cli.json\` to be an array of globs…:
> 
> \`\`\`
> "assets": \[
> "assets",
> "favicon.ico",
> ".htaccess",
> "cat-picks/\*\*/\*"
> \],
> \`\`\`
> 
> Previous behavior (\`"assets": "assets") will still work, but might be deprecated/removed in future versions.
> 
> Close https://github.com/angular/angular-cli/issues/1942
> Close https://github.com/angular/angular-cli/issues/2405

Seeing as you have already done this, it might help to examine the build itself. Would you please send us a link to the site at Netlify? (Meaning a URL starting with `https://app.netlify.com/sites/`?)

My best guess is that the file isn’t being copied by Angular to dist and examining the build itself would be the first step in troubleshooting why not.

---

<div class="post-metadata">

**Author:** ![roldev](https://avatars.discourse-cdn.com/v4/letter/r/45deac/32.png) [@roldev](https://answers.netlify.com/u/roldev)\
**Post date:** [February 28, 2020, 4:41pm UTC](https://answers.netlify.com/t/redirect-with-angular-8-not-working/5964/3 "2020-02-28T16:41:31Z")

</div>

So what is the solution? I am having this exact issue and i have already added the steps mentioned above. Can you please help?

---

<div class="post-metadata">

**Author:** ![fool](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/fool/32/37_2.png) [@fool](https://answers.netlify.com/u/fool)\
**Post date:** [March 1, 2020, 4:30pm UTC](https://answers.netlify.com/t/redirect-with-angular-8-not-working/5964/4 "2020-03-01T16:30:37Z")

</div>

It is likely your redirects file is incorrect or did not end up in the correct location. Could you link us to your site, please?

---

<div class="post-metadata">

**Author:** ![roldev](https://avatars.discourse-cdn.com/v4/letter/r/45deac/32.png) [@roldev](https://answers.netlify.com/u/roldev)\
**Post date:** [March 2, 2020, 5:54pm UTC](https://answers.netlify.com/t/redirect-with-angular-8-not-working/5964/5 "2020-03-02T17:54:09Z")

</div>

@fool Sure its: [https://hardcore-roentgen-37505f.netlify.com](https://hardcore-roentgen-37505f.netlify.com)

Please let me know if you need anything else.

---

<div class="post-metadata">

**Author:** ![fool](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/fool/32/37_2.png) [@fool](https://answers.netlify.com/u/fool)\
**Post date:** [March 2, 2020, 11:16pm UTC](https://answers.netlify.com/t/redirect-with-angular-8-not-working/5964/6 "2020-03-02T23:16:36Z")

</div>

Thanks, that is exactly what I was looking for. That site has no redirects applied, so no surprise they don’t work 🙂 Please make sure your \_redirects file ends up next to index.html after building so we see and deploy it !

I don’t think your site generator needs to know about it - you just need to deploy that file next to index.html to “activate” it.

---

<div class="post-metadata">

**Author:** ![Zachizpro](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/zachizpro/32/10857_2.png) [@Zachizpro](https://answers.netlify.com/u/Zachizpro)\
**Post date:** [May 17, 2020, 12:27am UTC](https://answers.netlify.com/t/redirect-with-angular-8-not-working/5964/7 "2020-05-17T00:27:23Z")

</div>

If anyone is still looking for a fix for this, this is what worked for me: [Angular routing not working on Netlify on page refresh - Stack Overflow](https://stackoverflow.com/questions/51887581/angular-routing-not-working-on-netlify-on-page-refresh)

---

<div class="post-metadata">

**Author:** ![daliznaidi](https://avatars.discourse-cdn.com/v4/letter/d/5e9695/32.png) [@daliznaidi](https://answers.netlify.com/u/daliznaidi)\
**Post date:** [April 30, 2021, 2:36am UTC](https://answers.netlify.com/t/redirect-with-angular-8-not-working/5964/8 "2021-04-30T02:36:53Z")

</div>

i still have this issue can anyone help me ?

---

<div class="post-metadata">

**Author:** ![perry](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/perry/32/16_2.png) [@perry](https://answers.netlify.com/u/perry)\
**Post date:** [April 30, 2021, 9:06pm UTC](https://answers.netlify.com/t/redirect-with-angular-8-not-working/5964/9 "2021-04-30T21:06:08Z")

</div>

hi there, have you checked the solution mentioned above?
