fix: bug where client routes are redirected to their base page path (#8083)
fix: bug where client routes are redirected to their base page path (#8083)

* fix: bug where client routes are redirected to their base page path

* address feedback

* fix location

0x80/gatsby,mingaldrichgan/gatsby,0x80/gatsby,ChristopherBiscardi/gatsby,gatsbyjs/gatsby,ChristopherBiscardi/gatsby,gatsbyjs/gatsby,gatsbyjs/gatsby,gatsbyjs/gatsby,ChristopherBiscardi/gatsby,mingaldrichgan/gatsby,gatsbyjs/gatsby,0x80/gatsby,mingaldrichgan/gatsby,gatsbyjs/gatsby,ChristopherBiscardi/gatsby