The "/" in the name of the repo was not escaped. Use uri_for_action to
generate the link to the fragments URI. That implies deleting the
"around" uri_for_action in Gitalist.pm. That seems to be OK because
tests still pass. Also, didn't find any invocation to uri_for_action
with a /fragments path.
return $uri;
};
-around uri_for_action => sub {
- my ($orig, $c) = (shift, shift);
- my $uri = $c->$orig(@_);
- $$uri =~ s[/fragment\b][] if defined $uri;
- return $uri;
-};
-
sub uri_with {
my ($self, @args) = @_;
my $uri = $self->request->uri_with(@args);
</tbody>
</table>
-[%- # We use uri_for instead of uri_for_action as we *want* a /fragment URI in this case %]
-<span id='file_commit_info-uri' class='js-data'>[% c.uri_for('/fragment/' _ Repository.name _ '/' _ Commit.sha1 _ '/file_commit_info') %]</span>
-<span id='commit-uri' class='js-data'>[% c.uri_for_action('/ref/commit', [Repository.name, 'HEAD']) %]</span>
\ No newline at end of file
+<span id='file_commit_info-uri' class='js-data'>[% c.uri_for_action('/fragment/ref/file_commit_info', [ Repository.name, Commit.sha1 ]) %]</span>
+<span id='commit-uri' class='js-data'>[% c.uri_for_action('/ref/commit', [Repository.name, 'HEAD']) %]</span>