Tell me more ×
Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. It's 100% free, no registration required.

I have a <apex:pageBlockTable> to display a list of cases like this:

<apex:pageBlockTable value="{!case}" var="c" rows="50" id="cases_table" >
    <apex:column >
        <a target="_parent" href="{!URLFOR($Action.Case.View, c.id)}">{!c.CaseNumber}</a>
            <apex:facet name="header"/>
        </apex:column>
        .
        .
        .
</apex:pageBlockTable>

When I click on the link to view the case, I get taken to the case page and the URL looks like this:

https://cs13.salesforce.com/500W0000000oKfFIAU/d?retURL=https%3A%2F%2Fc.cs13.visual.force.com%2Fapex%2FCasesTestPage%3Fsfdc.tabName%3D01rW00000004P7Y

Instead of directing to that URL, I would instead like to direct to this URL which still displays the case:

https://cs13.salesforce.com/500W0000000oKfFIAU

How would I do this? Thanks.

share|improve this question

1 Answer

up vote 10 down vote accepted

Simply change your <A> tag to:

<a target="_parent" href="/{!c.id}">{!c.CaseNumber}</a>

share|improve this answer
Awesome, that worked. Thanks! I will accept this answer when the time limit passes. – Di Zou Aug 27 '12 at 15:47

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.