Home  >  Q&A  >  body text

javascript - An application using react-router jumps back to the homepage after refreshing

Like the title, how to solve this problem?
One idea is:
When refreshing, pass the front-end route to the back-end, and then pass it back to the front-end from the back end. Is this method feasible?
Maybe you have a better way, please enlighten me, thank you!

The problem has been solved by the front-end girl

phpcn_u1582phpcn_u15822735 days ago656

reply all(1)I'll reply

  • PHPz

    PHPz2017-05-19 10:29:24

    Your... idea is too weird and useless
    If you want, just control the routing directly on the backend, if not, leave it to the frontend...

    reply
    0
  • Cancelreply