SIGN IN SIGN UP

fix: handle undefined pathname in URL builder (#2021)

* fix: handle undefined pathname in URL builder

Return early when pathname is undefined to avoid inserting an extra ':'
and strip a leading '/' from newDocId before concatenation

* Update src/utils/Url.js

Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>

* Update Url.js

* fix(Url): root/docId separator in Url util

Move pathname handling into the correct branch and ensure a ':' is
inserted between root and newDocId when appropriate

* feat: URL tests and include them in test runner

* chore: reorder imports in url.test.js

* chore: Bump @biomejs/biome to ^2.4.11

* Update biome.json

* fix

* fix

* chore: update biome

* fix: tests

---------

Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
Co-authored-by: Raunak Raj <71929976+bajrangCoder@users.noreply.github.com>
E
Emmanuel Lobo committed
0006340d32f615b4cff780dd89650cff7f1c0b43
Parent: 9adbf23
Committed by GitHub <noreply@github.com> on 4/10/2026, 5:32:24 PM