mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-09 15:05:44 +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:
@@ -54,7 +54,7 @@ export const createRelativeLink = (repositoryUrl: string) => {
|
||||
export const createFolderLink = (base: string, file: File) => {
|
||||
let link = base;
|
||||
if (file.path) {
|
||||
let path = file.path;
|
||||
let path = file.path.split("/").map(encodeURIComponent).join("/");
|
||||
if (path.startsWith("/")) {
|
||||
path = path.substring(1);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user