Skip to content

Replace URI.resolve with URIFormat.appendPath#1182

Merged
aaronlew02 merged 2 commits intomainfrom
uri-replace
Apr 20, 2026
Merged

Replace URI.resolve with URIFormat.appendPath#1182
aaronlew02 merged 2 commits intomainfrom
uri-replace

Conversation

@aaronlew02
Copy link
Copy Markdown
Collaborator

@aaronlew02 aaronlew02 commented Apr 15, 2026

Closes #1005

Summary

This change replaces all calls to URI.resolve with a call to the custom URI handler URIFormat.appendPath, to predictably handle trailing slashes in base URLs.

Signed-off-by: Aaron Lew <64337293+aaronlew02@users.noreply.github.com>
@loosebazooka
Copy link
Copy Markdown
Member

we should also ban the use of URI.resolve in the codebase and force devs to use appendPath. check config/forbiddenApis.txt and there's a way to apply exceptions.

Signed-off-by: Aaron Lew <64337293+aaronlew02@users.noreply.github.com>
@aaronlew02 aaronlew02 requested a review from loosebazooka April 16, 2026 00:54
@aaronlew02 aaronlew02 merged commit fe6a837 into main Apr 20, 2026
21 of 23 checks passed
@aaronlew02 aaronlew02 deleted the uri-replace branch April 20, 2026 15:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

check uses of URI.resolve

2 participants