Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

SAKIII-4811 hide back link if no referrer

Squashed commit of the following:

commit b769bf3ac77d95a6ceb50d75793c588576b9bb23
Merge: f2343f6 d542170
Author: Chris Roby <christopher.roby@gmail.com>
Date:   Mon Feb 13 12:58:44 2012 -0800

    Merge remote-tracking branch 'jsloane/SAKIII-4811' into jsloane-SAKIII-4811

commit d542170
Author: James Sloane <jsloane@csu.edu.au>
Date:   Mon Feb 13 10:22:06 2012 +1100

    SAKIII-4811 change per code review

commit b83f4f9
Author: James Sloane <jsloane@csu.edu.au>
Date:   Fri Feb 10 14:51:14 2012 +1100

    SAKIII-4811 hide back link if no referrer
  • Loading branch information...
commit 4d5a5d685fbc810d88efbf6b072e9225a729c303 1 parent f2343f6
@jsloane jsloane authored croby committed
View
4 apps/sling/servlet/errorhandler/403.jsp
@@ -109,7 +109,9 @@ response.setStatus(403);
{for w in links.whatToDo}
<li><a class="s3d-regular-links s3d-bold" href="\${w.url}">\${sakai.api.i18n.getValueForKey(w.title)}</a></li>
{/for}
- <li><a href="{if document.referrer === ""}/{else}\${document.referrer}{/if}" class="s3d-regular-links s3d-bold">__MSG__GO_BACK_BY_USING_YOUR_BROWSER_BACK_BUTTON__</a></li>
+ {if document.referrer}
+ <li><a href="\${document.referrer}" class="s3d-regular-links s3d-bold">__MSG__GO_BACK_BY_USING_YOUR_BROWSER_BACK_BUTTON__</a></li>
+ {/if}
</ul>
{if links.getInTouch && links.getInTouch.length > 0}
View
4 apps/sling/servlet/errorhandler/404.jsp
@@ -125,7 +125,9 @@ response.setStatus(404);
{for w in links.whatToDo}
<li><a class="s3d-regular-links s3d-bold" href="\${w.url}">\${sakai.api.i18n.getValueForKey(w.title)}</a></li>
{/for}
- <li><a href="{if document.referrer === ""}/{else}\${document.referrer}{/if}" class="s3d-regular-links s3d-bold">__MSG__GO_BACK_BY_USING_YOUR_BROWSER_BACK_BUTTON__</a></li>
+ {if document.referrer}
+ <li><a href="\${document.referrer}" class="s3d-regular-links s3d-bold">__MSG__GO_BACK_BY_USING_YOUR_BROWSER_BACK_BUTTON__</a></li>
+ {/if}
</ul>
{if links.getInTouch && links.getInTouch.length > 0}
View
4 dev/403.html
@@ -107,7 +107,9 @@ <h3 class="first">__MSG__YOU_TRIED_TO_ACCESS_PAGE_WITHOUT_PERMISSIONS__</h3>
{for w in links.whatToDo}
<li><a class="s3d-regular-links s3d-bold" href="${w.url}">${sakai.api.i18n.getValueForKey(w.title)}</a></li>
{/for}
- <li><a href="{if document.referrer === ""}/{else}${document.referrer}{/if}" class="s3d-regular-links s3d-bold">__MSG__GO_BACK_BY_USING_YOUR_BROWSER_BACK_BUTTON__</a></li>
+ {if document.referrer}
+ <li><a href="${document.referrer}" class="s3d-regular-links s3d-bold">__MSG__GO_BACK_BY_USING_YOUR_BROWSER_BACK_BUTTON__</a></li>
+ {/if}
</ul>
{if links.getInTouch && links.getInTouch.length > 0}
View
4 dev/404.html
@@ -123,7 +123,9 @@ <h3 class="first">__MSG__POSSIBLE_REASONS_FOR_THE_PAGE_NOT_BEING_FOUND__</h3>
{for w in links.whatToDo}
<li><a class="s3d-regular-links s3d-bold" href="${w.url}">${sakai.api.i18n.getValueForKey(w.title)}</a></li>
{/for}
- <li><a href="{if document.referrer === ""}/{else}${document.referrer}{/if}" class="s3d-regular-links s3d-bold">__MSG__GO_BACK_BY_USING_YOUR_BROWSER_BACK_BUTTON__</a></li>
+ {if document.referrer}
+ <li><a href="${document.referrer}" class="s3d-regular-links s3d-bold">__MSG__GO_BACK_BY_USING_YOUR_BROWSER_BACK_BUTTON__</a></li>
+ {/if}
</ul>
{if links.getInTouch && links.getInTouch.length > 0}
View
4 dev/500.html
@@ -107,7 +107,9 @@ <h3 class="first"></h3>
{for w in links.whatToDo}
<li><a class="s3d-regular-links s3d-bold" href="${w.url}">${sakai.api.i18n.getValueForKey(w.title)}</a></li>
{/for}
- <li><a href="{if document.referrer === ""}/{else}${document.referrer}{/if}" class="s3d-regular-links s3d-bold">__MSG__GO_BACK_BY_USING_YOUR_BROWSER_BACK_BUTTON__</a></li>
+ {if document.referrer}
+ <li><a href="${document.referrer}" class="s3d-regular-links s3d-bold">__MSG__GO_BACK_BY_USING_YOUR_BROWSER_BACK_BUTTON__</a></li>
+ {/if}
</ul>
{if links.getInTouch && links.getInTouch.length > 0}
Please sign in to comment.
Something went wrong with that request. Please try again.