Open genki opened 2 months ago
I found the localized path for the "/"
is resolved to "//"
when the app runs in production mode.
Here's a workaround:
const getPath = localizePath();
export const usePath = (path:string) => {
const gotPath = getPath(path);
if (gotPath === "//") return "/";
return gotPath;
}
I am unable to recreate this issue. Could you post the SpeakConfig or otherwise provide some other details? Thank you
When I get the localized path for the root path
"/"
and use it fornav()
, it is no problems at dev server, but it causes errorInvalid URL
in preview mode or production environment.