Repository navigation
Replies: 2 comments 6 replies
|
I’m currently patching |
5 replies
|
Hey folks! We added a new |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hello Devs,
Description
This is sort of a follow up on #12418. Though to be clear, this proposal is for sites that don't have basePaths. We have multiple root level frontend applications that manage a collection of root based routes.
For Example:
//help/search/contact-usThe Problem
With Lazy Route Disovery the fact that the
/__manifestqueries will go to the root or "basename" of the ReactRouter App doesn't suit this routing model. As our Frontend App 2 manifest requests will be recieved by the Frontend App 1.The Proposal
The proposal/request is that ReactRouter applications can support custom defined
__manifestpaths via thereact-router.config.tsfile.This could either be an exising route known to the app e.g.
/help/__manifestWhere even the/contact-uspage will still request via/help/__manifestor a custom defined path that is then consumed as a new route within the app.So for
/site/app2/__manifestaRoute('site/app2')would additonally be added at build. Then both/helpand/contact-uswould query/site/app2/__manifest.Expectations:
/site/app2) to return a 404 as an "unregistered" route.manifestPathto take priority over thebasePathwhen generating the manifest url.Example
Produces manifest url =
${hostname}/site/app/__manifestAll reactions