Inconsistent wildcard page context #2076
Unanswered
Maksym-Shportko
asked this question in
Help
Replies: 1 comment
-
|
@Maksym-Shportko Thank you for reporting this, this is worth investigating so we will do that and come back to you. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Description
Context:

Have a following Sitecore tree with wildcard page in it:
view all funds page displays the list of url's.
Setup:
SitecoreXMC, Nextjs
The issues i facing with is different
contextvalue ofgetStaticPropsmethod in my/pages/[[...path]].tsxfile.See these 2 URLs as example
And
contextfor each:[
'funds',
'view-all-funds',
'aberdeen-european-residential-opportunities-fund-scsp-sicav-sif',
'eur',
'xxduufd708b1'
]
VS
[
'funds',
'view-all-funds',
'abrdn-lothian-active-plus-bond-trust'
]
As you see, first one contains 2 additional items comparing to the second array.
As workaround, i can slice
originalPath. This way all the urls resolves as expected, but i'de like to have a proper solution.originalPath.slice(0, 3);Sitecore suggested way of wildcard page resolving seems does not working, as all the routes still get resolves by
/pages/[[...path]].tsxcatch-all file even though i create/pages/view-all-funds/[..path].tsxfile.Please advice what might be the reason of getting different
contextingetStaticPropsmethod?Additional information
No response
Beta Was this translation helpful? Give feedback.
All reactions