Hi,
I'm running a Vue app consuming the DWAPI. I'm attempting to implement the same functionality where the product details page is dynamic, as is in Swift.
So the issue is how to get a link to the product details page, when in the product list page. In Swift files, the link in Swift_ProductListItemRepeater.cshtml is formatted via string link = product.GetProductLink(GetPageIdByNavigationTag("Shop"), false); .Currently my solution is converting product name to a url-friendly string, this however fails me when attempting to actually render the product details page based on the generated url string.
Assuming the above gets solved, im then not sure how to properly get the product data via the url(e.g: /bikes/road-bikes/k2-tnine-alliance-ladies-road-bike-cc), since the DWAPI requires a productId, and theres no way to match the url with json data recieved in dwapi/frontend/navigations/3?ExpandMode=All&IncludeFoldersAndHidden=True since single products arent included, only product groups.
I'm wondering if anyone has adressed this issue and found a solution? Or maybe could point me in the right direction to find one.
Thanks in advance,