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
Rahul Gupta 76Rahul Gupta 76 

Apex output link not working in salesforce1

I am using below code to move to record details page:

It works in desktop but not in Salesforce1 Android App.
<apex:outputLink value="/{!q.id}">{!q.App_Contract_Name__c}</apex:outputLink>

Please help.
Chandra Sekhar CH N VChandra Sekhar CH N V
Is it throwing any error?

Try using the target attribute to let the record open in a new window/tab etc.
Rahul Gupta 76Rahul Gupta 76
It opens detail page in desktop but does nothing in Salesforce1 app.
Rahul Gupta 76Rahul Gupta 76

Looks like...This outputlink is present in a VF page and when called from Salesforce1, it gives below error:

Refused to display 'https://ap2.salesforce.com/a0B28000000TgP6EAK)' in a frame because it set 'X-Frame-Options' to 'SAMEORIGIN'.

When I created a VF tab with same Vf page...the outputlink worked perfectly fine. Any suggestion on this how to avoid X-Frame error.