mirror of
https://github.com/vercel/commerce.git
synced 2025-05-15 05:56:59 +00:00
feat(poc): next dump try
This commit is contained in:
parent
f2bf4d34b7
commit
09ecbe89e3
@ -105,6 +105,7 @@ export async function requestSeoUrl(
|
|||||||
page: number = 1,
|
page: number = 1,
|
||||||
limit: number = 1
|
limit: number = 1
|
||||||
): Promise<SeoURLResultSW> {
|
): Promise<SeoURLResultSW> {
|
||||||
|
const fixedHandle = handle.replace('%2F', '/');
|
||||||
return await apiInstance.invoke('readSeoUrl post /seo-url', {
|
return await apiInstance.invoke('readSeoUrl post /seo-url', {
|
||||||
page: page,
|
page: page,
|
||||||
limit: limit,
|
limit: limit,
|
||||||
@ -117,22 +118,12 @@ export async function requestSeoUrl(
|
|||||||
{
|
{
|
||||||
type: 'equals',
|
type: 'equals',
|
||||||
field: 'seoPathInfo',
|
field: 'seoPathInfo',
|
||||||
value: handle + '/'
|
value: fixedHandle + '/'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: 'equals',
|
type: 'equals',
|
||||||
field: 'seoPathInfo',
|
field: 'seoPathInfo',
|
||||||
value: handle
|
value: fixedHandle
|
||||||
},
|
|
||||||
{
|
|
||||||
type: 'equals',
|
|
||||||
field: 'seoPathInfo',
|
|
||||||
value: decodeURIComponent(handle) + '/'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
type: 'equals',
|
|
||||||
field: 'seoPathInfo',
|
|
||||||
value: decodeURIComponent(handle)
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user