I recently got chance to help a team on a requirement where we needed to implement product detail pages using SitecoreAI wildcard pages. The setup was: SitecoreAI Content SDK 1.3.2 Next.js 15 Next.js App Router The requirement was to have a Product Details page configured as a wildcard ( * ) item in SitecoreAI and use the incoming URL to determine which product should be displayed. For example, we wanted URLs such as: /products/product-123 /products/product-456 /products/product-789 All of these URLs should use the same wildcard page layout, while the last part of the URL identifies the actual product. The Initial Question We raised a Sitecore support case because we wanted to understand the recommended way to implement the wildcard page resolver with the Content SDK and Next.js App Router. The important part of the question was that we were using Content SDK , not the JSS SDK, and the application was using the Next.js App Router . Initially, the Sitec...
I recently came across an interesting routing issue in SitecoreAI where enabling useDisplayName started generating much cleaner URLs, but those URLs were returning 404 in the rendering host. The interesting part was that the same pages worked perfectly when accessed using their original item-name based URLs. The Requirement The team I was helping had category pages with URLs like: https://testing.mysite.com/Products/1341592/1342427/1342434 These URLs are technically valid, but they aren't particularly user-friendly. The preferred URL was something like: https://testing.mysite.com/Products/category1 display name/category2 display name /category3 display name In Sitecore, this can be achieved by configuring the link provider to use the item's display name when generating URLs. The Configuration Change We deployed the following Sitecore configuration patch in the staging environment: <?xml version="1.0" encoding="utf-8"?> <confi...