Page not found after going back

I deployed my app that is working fine but when I go back it gives me a page with only id of the required result not exact result.
myroute isn’t working well. Apparently, one can not go back on the link, the content doesn’t load. Starting from the landing page, when I click a character to go to the details page and I try to go back to the previous page, the heroList page doesn’t load the content and when I use the reload button on my browser it says page not found and shows an error in the console.
You can check the problem from this app

My github link is

working branch

Hi, @arslan, I think this site requires a single-page app rule as described here:

Would you please try adding that rule? If there are questions or if that rules doesn’t resolve it, please let us know.