Find your content:

Search form

You are here

How do I direct my case view to the shortened URL?

 
Share

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.


Attribution to: Di Zou

Possible Suggestion/Solution #1

Simply change your <A> tag to:

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


Attribution to: E.J. Wilburn
This content is remixed from stackoverflow or stackexchange. Please visit https://salesforce.stackexchange.com/questions/912

My Block Status

My Block Content