OiO.lk Community platform!

Oio.lk is an excellent forum for developers, providing a wide range of resources, discussions, and support for those in the developer community. Join oio.lk today to connect with like-minded professionals, share insights, and stay updated on the latest trends and technologies in the development field.
  You need to log in or register to access the solved answers to this problem.
  • You have reached the maximum number of guest views allowed
  • Please register below to remove this limitation

Getting this 404 error in angular application when page first time loads or when page refresh

  • Thread starter Thread starter Prakash Lohar
  • Start date Start date
P

Prakash Lohar

Guest
When Page first time load or refresh then this error will generate in console with current url. This error will generate in development server but not generate in localhost. enter image description here

When I click on abcd:1 atright corner then below sources will open enter image description here

Let me know if any solution for this error

I tried with replace <base href="/"> with <base href="./"> in index.html but still not fix this issue. Also try with remove dynamic path in routing.module file.

<p>When Page first time load or refresh then this error will generate in console with current url.
This error will generate in development server but not generate in localhost.
<a href="https://i.sstatic.net/IUAGt.jpg" rel="nofollow noreferrer">enter image description here</a></p>
<p>When I click on abcd:1 atright corner then below sources will open
<a href="https://i.sstatic.net/2B2go.jpg" rel="nofollow noreferrer">enter image description here</a></p>
<p>Let me know if any solution for this error</p>
<p>I tried with replace <base href="/"> with <base href="./"> in index.html but still not fix this issue.
Also try with remove dynamic path in routing.module file.</p>
 

Online statistics

Members online
0
Guests online
4
Total visitors
4
Top