+ Start a Discussion

RedirectPage() stopped working after Winter '16. Any suggestions on how to fix and troubleshoot please.

The page 'cancel' button has an onclick redirectpage.
Now, when I click the cancel button nothing happens.

<apex:commandbutton id="cmdCancel" value="{!$Label.Button_Cancel}" onclick="javascript: RedirectPage();"/>  

From Chrome: Uncaught TypeError: Cannot read property 'focus' of undefined  

From Mozilla Firefox: Instance 'backToSuggestionsLnk_500e0000006P9rj-18ed8e4b6c5de6fb024519190e0bef26150816a7a90zf04126a57303ae4d' is uninitialized and type was undefined"
Best Answer chosen by dlatte
Gordon EngelGordon Engel
I don't see any similar cases or bugs in the Salesforce database.  Perhaps it is a page loading race condition.  I found this for a similar error: