mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-02 03:25:56 +01:00
Fix repository viewer for filenames which contains a hash (#1776)
Add missing url encoding for file links in the repository viewer. Fixes #1766
This commit is contained in:
@@ -144,7 +144,7 @@ const Breadcrumb: FC<Props> = ({
|
||||
return (
|
||||
<li className="is-active" key={index}>
|
||||
<Link className="is-ellipsis-overflow" to="#" aria-current="page">
|
||||
{pathFragment}
|
||||
{decodeURIComponent(pathFragment)}
|
||||
</Link>
|
||||
</li>
|
||||
);
|
||||
@@ -156,7 +156,7 @@ const Breadcrumb: FC<Props> = ({
|
||||
title={pathFragment}
|
||||
to={baseUrl + "/" + encodeURIComponent(revision) + "/" + currPath}
|
||||
>
|
||||
{pathFragment}
|
||||
{decodeURIComponent(pathFragment)}
|
||||
</Link>
|
||||
</li>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user