404 There isn't a Github Pages site here if you're trying to publish one the read full documentation

when I am hosting my portfolio project on github then after clicking on link then the output is like :

https://sarika4497.github.io/myreactportfolio/

but after clicking on home or others on navigation bar then it’s having a error like:

https://sarika4497.github.io/#home

Then how to solve the problem