search
AI OnAI Off
A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More.
To resolve the issue, I have used Dynamic Data Store to save and get the page id using URLsegment.
I would like to know whether this soluion is the best practices ?
I have used partial routing concept for URL shortening and it is working as expected. But for getting the page reference, I have passed the “Page ID” value into the URLsegment and get the page values (refer the code below). Instead of passing page id into the URL, Is there any other way to get the page reference of current routed page?
URL format:
http://testsite.org/article/{page name}/{page ID}
Code which I have used: