function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Rahul Yadav 272Rahul Yadav 272 

naviagtion in sandbox

Hi Everybody,

I am using navigaiton module to navigate from one community page to other with parameter(Property & price) pass in url.. Below is the code i am using. 

User-added imageAlso i tried to check the url for both  but again the its giving me the url for playground but for sandbox  its undefined !!User-added image

When i am trying it in playgroud org it's working but in the sandbox it's giving me an error url can't be generated !! How can i use the navigation in sandbox ? Should i have o use generateURl along with navigationmixin in sandbox or anythings else !!

It's urgent so if anybody can help !!

 
ShivankurShivankur (Salesforce Developers) 
Hi Rahul,

Can you check with following syntax in your LWC code to see:
let url = new URL(window.location.href);
let searchParams = url.searchParams;
console.log(url);
console.log(searchParams);
Hope above information helps. Please mark as Best Answer so that it can help others in future.

Thanks.