All my urls start with lang, like /en, /en/contact etc. A perfect case for basename, especially dynamic one. I considered to switch from RFR to Rudy, because based on https://github.com/respond-framework/rudy/blob/master/packages/rudy/src/actions/changeBasename.js I figured that in Rudy we can change basename, so lang change would be much easier. Sadly, it doesn't work I am afraid.
I have:
const {
reducer: routerReducer,
middleware: routerMiddleware,
firstRoute,
api,
} = createRouter(routesMap, {
basename: '/en',
});
but basename does nothing, generally I migrated the whole app to Rudy and it seems to work fine, but basename is '' looking at Redux location state.
If this is not supported, could you consider adding this dynamic basename feature to RFR? This is very common use case for routers, and right now I need to have :lang param in all urls which is very inconvenient.
All my urls start with lang, like
/en,/en/contactetc. A perfect case forbasename, especially dynamic one. I considered to switch from RFR to Rudy, because based on https://github.com/respond-framework/rudy/blob/master/packages/rudy/src/actions/changeBasename.js I figured that in Rudy we can change basename, so lang change would be much easier. Sadly, it doesn't work I am afraid.I have:
but
basenamedoes nothing, generally I migrated the whole app to Rudy and it seems to work fine, but basename is''looking at Redux location state.If this is not supported, could you consider adding this dynamic basename feature to RFR? This is very common use case for routers, and right now I need to have
:langparam in all urls which is very inconvenient.