You need to sign in to do that
Don't have an account?
Rakshana Cube84
Get the current page URL from Community portal VF page
Hi All,
We have implemented a community portal which runs public. In that community branding, we have added a developed Visualforce page which fetches the current URL by using ApexPages.Currentpage().getParameters().get('referer') and we have few links in the visualforce page to redirect a page which already been created as a community page. We are getting the URL properly for some time. But some moment, it returns the random related URL when we play around with the site.
Please help us to get the exact URL for all time.
We have implemented a community portal which runs public. In that community branding, we have added a developed Visualforce page which fetches the current URL by using ApexPages.Currentpage().getParameters().get('referer') and we have few links in the visualforce page to redirect a page which already been created as a community page. We are getting the URL properly for some time. But some moment, it returns the random related URL when we play around with the site.
Please help us to get the exact URL for all time.
Greetings to you!
Please try this code as it may help you in solving your problem. Here is the Link/Button, on click of that calls the javascript method.
change it according to your needs.
I hope you find the above solution helpful. If it does, please mark as Best Answer to help others too.
Thanks and Regards,
Deepali Kulshrestha