Activity Forums Salesforce® Discussions Outputlink redirect to recordId

  • Outputlink redirect to recordId

    Posted by Nitish on April 30, 2016 at 5:51 PM

    Facing problem on  salesforce 1 mobile app.

    From an apex:outputlink, i am redirecting to a recordid.

    <apex:outputLink target=”_” onclick=”sforce.one.navigateToSObject(‘{!task.id}’,’view’)” value=”{!task.Id}”>{!task.subject }</apex:outputLink>

    Everytime it showing a page url not found and when i check the generated url, i see isdpt=p1 appended.

    • This discussion was modified 10 years, 1 month ago by  Forcetalks.
    • This discussion was modified 10 years ago by  Nitish.
    Utsav replied 10 years ago 2 Members · 1 Reply
  • 1 Reply
  • Utsav

    Member
    June 1, 2016 at 2:12 PM

    Hi
    The paths can’t be concatenated because Salesforce1 adds ?isdtp=p1 to all generated URLs. One of the solution for that is to use URLFOR function of salesforce .

    Thanks

Log In to reply.