Permalink
Browse files

BUGFIX login BackURL wrong when using nested urls (fixes #5520, thank…

…s ktauber)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.4@103933 467b73ca-7a2a-4603-9d3b-597d59a354a9
  • Loading branch information...
1 parent 1b5b140 commit db447250623db88050992e55672ea2f6ce70bf4c @chillu chillu committed with sminnee May 3, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 templates/PageCommentInterface.ss
@@ -7,7 +7,7 @@
<% else %>
<p><% _t('COMMENTLOGINERROR', 'You cannot post comments until you have logged in') %>,
<% if PostingRequiresPermission %><% _t('COMMENTPERMISSIONERROR', 'and that you have an appropriate permission level') %><% end_if %>.
- <a href="Security/login?BackURL={$Page.URLSegment}/" title="Login to post a comment"><% _t('COMMENTPOSTLOGIN', 'Login Here') %></a>.
+ <a href="Security/login?BackURL={$Page.Link}/" title="Login to post a comment"><% _t('COMMENTPOSTLOGIN', 'Login Here') %></a>.
</p>
<% end_if %>
<% else %>

0 comments on commit db44725

Please sign in to comment.