-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(client): fix versionedUrlEndpoint()
#2627
Conversation
You can access the deployment of this PR at https://renku-ci-ui-2627.dev.renku.ch |
endpoint: string, | ||
versionUrl: string | null | undefined | ||
) { | ||
const urlPath = versionUrl ? `${versionUrl}/${endpoint}` : `/${endpoint}`; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we make this a bit more robust by always checking whether urlPath
starts with /
, adding it when that's not the case?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is a good idea. I believe there are code paths that add a /
, so checking for that and adding a slash if necessary seems like a good strategy.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done in fc16765.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lgtm! Thanks for fixing this
Tearing down the temporary RenkuLab deplyoment for this PR. |
This can cause issue for projects using an unsupported metadata version.
/deploy #persist #cypress