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.
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.
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: