mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-15 23:05:57 +01:00
Merge pull request #16091 from AllForNothing/release-2.4.0
Fix unescaped url issue
This commit is contained in:
commit
c4b06d7959
@ -38,7 +38,7 @@ export class ListRepositoryROComponent {
|
||||
getLink(projectId: number, repoName: string) {
|
||||
let projectName = repoName.split('/')[0];
|
||||
let repositorieName = projectName ? repoName.substr(projectName.length + 1) : repoName;
|
||||
return `/harbor/projects/${projectId}/repositories/${repositorieName}`;
|
||||
return ['/harbor/projects', projectId, 'repositories', repositorieName];
|
||||
}
|
||||
getQueryParams() {
|
||||
if (this.sessionService.getCurrentUser()) {
|
||||
|
Loading…
Reference in New Issue
Block a user