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
Dmitry OmelchenkoDmitry Omelchenko 

Redirect from Visualforce page to one.app page in Salesforce1

I've overridden "New" button of custom object with Visualforce page. When I click this button it should redirect to another one.app page in Salesforce1 but it's not working and says "Something has gone wrong. $A.getDefinition. Please try again."

My Visualforce page:
<apex:page standardController="Note__c" sidebar="false" showHeader="false" standardStylesheets="false" applyBodyTag="false" applyHtmlTag="false" showQuickActionVfHeader="false">
<script>
    var url = '/one/one.app#eyJjb21wb25lbnREZWYiIDogImM6cXVpY2tBZGQiLCJhdHRyaWJ1dGVzIiA6IHt9fQ==';
sforce.one.navigateToURL(url, true);
</script>    
</apex:page>

However, it's working when I do
window.parent.location = '/one/one.app#eyJjb21wb25lbnREZWYiIDogImM6cXVpY2tBZGQiLCJhdHRyaWJ1dGVzIiA6IHt9fQ==';

Any suggestions much appreciated.
Thanks.
Sergio López CalvoSergio López Calvo
Hi, 

I´m affected by this problem,  "Something has gone wrong. $A.getDefinition. Please try again." , no body knows about, I need help¡¡

Please, if anybody knows something about, response me.

Thanks...
Manas GuptaManas Gupta
Sergio Lopez Calvo Just  resert your browser setting and then preview your page .