Find your content:

Search form

You are here

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


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.CaseNumber}</a>
            <apex:facet name="header"/>

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

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

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.CaseNumber}</a>

Attribution to: E.J. Wilburn
This content is remixed from stackoverflow or stackexchange. Please visit

My Block Status

My Block Content