Skip to main content

You can use like this:

PageReference pageRef = ApexPages.currentPage();

pageRef.getParameters().put('test', ApexPages.currentPage().getParameters().get('test'));

pageRef.setRedirect(true);

return pageRef;

PageReference pageRef = ApexPages.currentPage();

pageRef.getParameters().put('test', ApexPages.currentPage().getParameters().get('test'));

pageRef.setRedirect(true);

return pageRef;

You can use like this:

PageReference pageRef = ApexPages.currentPage();

pageRef.getParameters().put('test', ApexPages.currentPage().getParameters().get('test'));

pageRef.setRedirect(true);

return pageRef;

You can use like this:

PageReference pageRef = ApexPages.currentPage();

pageRef.getParameters().put('test', ApexPages.currentPage().getParameters().get('test'));

pageRef.setRedirect(true);

return pageRef;
Source Link
Santanu Boral
  • 36.2k
  • 8
  • 45
  • 72

You can use like this:

PageReference pageRef = ApexPages.currentPage();

pageRef.getParameters().put('test', ApexPages.currentPage().getParameters().get('test'));

pageRef.setRedirect(true);

return pageRef;