fix(back-end): fix load product
This commit is contained in:
@@ -13,7 +13,7 @@ export function resolvePublicRedirectTarget(pathname: string): string | null {
|
||||
normalizedPath === '/' ? '/' : normalizedPath.replace(/\/+$/, '');
|
||||
const segments = splitSegments(trimmedPath);
|
||||
if (segments.length === 0) {
|
||||
return null;
|
||||
return `/${DEFAULT_LANG}`;
|
||||
}
|
||||
|
||||
const firstSegment = segments[0].toLowerCase();
|
||||
|
||||
Reference in New Issue
Block a user