Merge pull request #16091 from AllForNothing/release-2.4.0

Fix unescaped url issue
This commit is contained in:
Yang Jiao 2021-12-16 12:00:44 +08:00 committed by GitHub
commit c4b06d7959
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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()) {