Fix unescaped url issue

Signed-off-by: AllForNothing <sshijun@vmware.com>
This commit is contained in:
AllForNothing 2021-12-08 11:55:20 +08:00
parent 2e6650a9f1
commit 644413af28

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