Skip to main content
Shamser Dhami (javra) a posé une question dans #Visualforce
I did use below syntax:

   PageReference nextPage = new PageReference('/' + caseId); 

            nextPage.setRedirect(true);

return nextPage;

 

to redirect back to View page which works fine.

Mine question is How can I then redirect to Merge Case standard screen?

 

FYI: I tried below:

 PageReference nextPage = new PageReference('/' + caseId); //new PageReference(referrer); 

            nextPage.setRedirect(true);

            

              // Redirect to the standard Merge Case screen

            PageReference mergeCasesPage = new PageReference('/merge/CaseMerge.jsp');

            mergeCasesPage.setRedirect(true);

            

              nextPage.getHeaders().put('X-XSS-Protection', '0'); // Allow JavaScript execution

             nextPage.getParameters().put('nexturl', mergeCasesPage.getUrl());

return nextpage;

 

but couldn't achieve what I want. When I tried mergeCasesPage only then It  says url no longer exist or something .
2 réponses
  1. 11 sept. 2023, 04:33
    @Ashwini  I tried your return url it say's url is invalid. I need a valida way to redirect back to case merge scree.
0/9000