fix. / 접근시에도 lang_code 전달 되도록 수정
This commit is contained in:
@@ -61,7 +61,7 @@ export const getPathLocale = (url: string): string => {
|
||||
if (!url) return ''
|
||||
|
||||
const cleanUrl = url.endsWith('/') ? url.slice(0, -1) : url
|
||||
return cleanUrl.split('/')[1]
|
||||
return cleanUrl.split('/')[1] || ''
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user