Catalyst - How to get the current URL in server side rendering? #1920
Closed
kathir-arizon
started this conversation in
General
Replies: 1 comment
-
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi @chanceaclark ,
I tried to get the current page URL on the server side but it is not working as expected.
I have set some request headers in the middleware file. It is correctly mapped on every page request. When I tried to retrieve the value on the server side like the root layout file it worked perfectly fine on the localhost but when we deploy the code on the vercel. The next/headers always return null.
Is there any other to achieve this? I can see product page search params are working as expected. Kindly let me know how to get the current pathname or page URL.
Thanks,
Kathir
Beta Was this translation helpful? Give feedback.
All reactions