📝 CodeRabbit Chat: Implement requested code changes#600
📝 CodeRabbit Chat: Implement requested code changes#600coderabbitai[bot] wants to merge 1 commit into
Conversation
|
Important Review skippedThis PR was authored by the user configured for CodeRabbit reviews. CodeRabbit does not review PRs authored by this user. It's recommended to use a dedicated user account to post CodeRabbit review feedback. ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Comment |
|
This is the right direction for query/hash normalization, but the build-time helper still needs to preserve the runtime URL contract by rejecting non-http(s) protocols. Current code accepts any parseable URL: const parsed = new URL(trimmed);
return (parsed.origin + parsed.pathname).replace(/\/+$/, '');That means Suggested fix: add the same protocol check to |
Code changes was requested by @awsl233777.
The following files were modified:
web/src/lib/backend-config.test.tsweb/src/lib/backend-config.ts