# Routing problems with MERN stack app

**URL:** <https://forum.freecodecamp.org/t/routing-problems-with-mern-stack-app/365706>\
**Category:** General\
**Created:** [March 30, 2020, 5:00pm UTC](https://forum.freecodecamp.org/t/routing-problems-with-mern-stack-app/365706 "2020-03-30T17:00:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![JohnnyBizzel](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/johnnybizzel/32/37661_2.png) [@JohnnyBizzel](https://forum.freecodecamp.org/u/JohnnyBizzel)\
**Post date:** [March 30, 2020, 5:00pm UTC](https://forum.freecodecamp.org/t/routing-problems-with-mern-stack-app/365706/1 "2020-03-30T17:00:02Z")

</div>

I am having routing problems with this project.

[https://github.com/JohnnyBizzel/polling-station-2](https://github.com/JohnnyBizzel/polling-station-2)

The new registration page (React) works (created a new user) but I can’t redirect to another page. [https://github.com/JohnnyBizzel/polling-station-2/blob/master/src/utils/Register.js](https://github.com/JohnnyBizzel/polling-station-2/blob/master/src/utils/Register.js)

I have another registration page which does work that uses express-handlebars but I want to replace that eventually.

I am also having problems with validation. The form still submits even with errors.  
What’s the best strategy here? Disable the submit button until a form is valid?

---

<div class="post-metadata">

**Author:** ![ILM](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/ilm/32/363239_2.png) [@ILM](https://forum.freecodecamp.org/u/ILM)\
**Post date:** [June 1, 2021, 7:00pm UTC](https://forum.freecodecamp.org/t/routing-problems-with-mern-stack-app/365706/2 "2021-06-01T19:00:35Z")

</div>


