<div class='pager'>
- <a href='[% c.uri_for(action, {h=HEAD}) %]'>HEAD</a> §
+ <a href='[% c.uri_for_action('/' _ c.action, [Repository.name, 'HEAD']) %]'>HEAD</a> §
[% IF log_lines.first.sha1 != commit.sha1 %]
- <a href='[% c.uri_for(action, {pg=page - 1, h=commit.sha1}) %]'>« prev</a>
+ <a href='[% c.request.uri_with(pg => (page||0) - 1) %]'>« prev</a>
[% END %]
[% IF log_lines.size == 50 %]
- <a href='[% c.uri_for(action, {pg=page + 1, h=commit.sha1}) %]'>next »</a>
+ <a href='[% c.request.uri_with(pg => (page||0) + 1) %]'>next »</a>
[% END %]
</div>