Current URL should be normalized before fetching sub-navigation
Closed this issue · 0 comments
i-like-robots commented
When fetching the sub-navigation from the /hierarchy
endpoint of the Next Navigation API no normalisation of the URLs is performed. Subsequently modifications to the URL like query strings (e.g. ?page=2
) will result in no sub-navigation being found and the request failing.
To fix this we should refactor our navigation middleware package to only send the URL path to the navigation API.