René's URL Explorer Experiment


Title: Fix router base path handling, bq-if DOM stability, and CHANGELOG consistency by Copilot · Pull Request #22 · bQuery/bQuery · GitHub

Open Graph Title: Fix router base path handling, bq-if DOM stability, and CHANGELOG consistency by Copilot · Pull Request #22 · bQuery/bQuery

X Title: Fix router base path handling, bq-if DOM stability, and CHANGELOG consistency by Copilot · Pull Request #22 · bQuery/bQuery

Description: Addresses 6 issues from PR #16 review: router base path mismatch causing navigation failures, bq-if breaking when elements move, and CHANGELOG inconsistencies. Router base path handling Problem: Routes were stored with base prefixed (/app/page), but path matching stripped base from URLs, causing mismatches: // Before: routes contain base, but matching receives stripped paths flattenRoutes([{ path: '/page' }], '/app') // → [{ path: '/app/page' }] getCurrentPath() // strips base: '/app/page' → '/page' createRoute('/page', routes) // tries to match '/page' against '/app/page' → FAIL Fix: Keep route definitions base-relative. Only apply base when reading/writing browser history: // After: routes stay base-relative flattenRoutes([{ path: '/page' }]) // → [{ path: '/page' }] getCurrentPath() // strips base: '/app/page' → '/page' createRoute('/page', routes) // matches '/page' against '/page' → SUCCESS history.pushState({}, '', `${base}${path}`) // base applied here only flattenRoutes(): Renamed parameter base → parentPath, removed base logic createRouter(): Pass routes without base to flattenRoutes() Test updated to expect base-relative paths in router.routes bq-if directive DOM stability Problem: Parent node captured at mount time becomes stale when element is moved: const parent = el.parentNode; // Captured once // Later, if element moved to different parent... parent?.replaceChild(el, placeholder); // Throws: el not child of parent Fix: Use replaceWith() which resolves current parent dynamically: placeholder.replaceWith(el); // Works even after element moved el.replaceWith(placeholder); CHANGELOG fixes Typos: dangrous → dangerous, brodken → broken Format: (1.1.2) → [1.1.2] for consistency with Keep a Changelog standard (applied to all versions) 💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Open Graph Description: Addresses 6 issues from PR #16 review: router base path mismatch causing navigation failures, bq-if breaking when elements move, and CHANGELOG inconsistencies. Router base path handling Problem: Ro...

X Description: Addresses 6 issues from PR #16 review: router base path mismatch causing navigation failures, bq-if breaking when elements move, and CHANGELOG inconsistencies. Router base path handling Problem: Ro...

Opengraph URL: https://github.com/bQuery/bQuery/pull/22

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:08627cf9-f0cd-9a13-988e-3d5df6b4dba7
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id8184:2A256:397400:532033:6A4E2C36
html-safe-nonce3ad7f0121e6a7f8e3e2aedc6d815055984b3aa3836e91e363c471d498707e745
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MTg0OjJBMjU2OjM5NzQwMDo1MzIwMzM6NkE0RTJDMzYiLCJ2aXNpdG9yX2lkIjoiNzMyNzcyOTQxNTg1NjQ2Njk5OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac8d51ff8e5f4c5763feb4522cf47ad7a651534c5d9ebeeb6bee4a961daf793c3d
hovercard-subject-tagpull_request:3210088411
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/bQuery/bQuery/pull/22/files
twitter:imagehttps://avatars.githubusercontent.com/in/1143301?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/in/1143301?s=400&v=4
og:image:altAddresses 6 issues from PR #16 review: router base path mismatch causing navigation failures, bq-if breaking when elements move, and CHANGELOG inconsistencies. Router base path handling Problem: Ro...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None030096ee0db095447bfe77409d33bfac127ca7128299c58deef27c52eaa1b1f0
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/bQuery/bQuery git https://github.com/bQuery/bQuery.git
octolytics-dimension-user_id256381806
octolytics-dimension-user_loginbQuery
octolytics-dimension-repository_id1139284244
octolytics-dimension-repository_nwobQuery/bQuery
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id1139284244
octolytics-dimension-repository_network_root_nwobQuery/bQuery
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
released9dd20d38f8ae3c4cb6b597807431db300d0bd2a
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/bQuery/bQuery/pull/22/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FbQuery%2FbQuery%2Fpull%2F22%2Ffiles
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FbQuery%2FbQuery%2Fpull%2F22%2Ffiles
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=bQuery%2FbQuery
Reloadhttps://github.com/bQuery/bQuery/pull/22/files
Reloadhttps://github.com/bQuery/bQuery/pull/22/files
Reloadhttps://github.com/bQuery/bQuery/pull/22/files
Please reload this pagehttps://github.com/bQuery/bQuery/pull/22/files
bQuery https://github.com/bQuery
bQueryhttps://github.com/bQuery/bQuery
Please reload this pagehttps://github.com/bQuery/bQuery/pull/22/files
Notifications https://github.com/login?return_to=%2FbQuery%2FbQuery
Fork 0 https://github.com/login?return_to=%2FbQuery%2FbQuery
Star 1 https://github.com/login?return_to=%2FbQuery%2FbQuery
Code https://github.com/bQuery/bQuery
Issues 0 https://github.com/bQuery/bQuery/issues
Pull requests 0 https://github.com/bQuery/bQuery/pulls
Actions https://github.com/bQuery/bQuery/actions
Security and quality 0 https://github.com/bQuery/bQuery/security
Insights https://github.com/bQuery/bQuery/pulse
Code https://github.com/bQuery/bQuery
Issues https://github.com/bQuery/bQuery/issues
Pull requests https://github.com/bQuery/bQuery/pulls
Actions https://github.com/bQuery/bQuery/actions
Security and quality https://github.com/bQuery/bQuery/security
Insights https://github.com/bQuery/bQuery/pulse
Sign up for GitHub https://github.com/signup?return_to=%2FbQuery%2FbQuery%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2FbQuery%2FbQuery%2Fissues%2Fnew%2Fchoose
JosunLPhttps://github.com/JosunLP
developmenthttps://github.com/bQuery/bQuery/tree/development
copilot/sub-pr-16https://github.com/bQuery/bQuery/tree/copilot/sub-pr-16
Conversation 1 https://github.com/bQuery/bQuery/pull/22
Commits 2 https://github.com/bQuery/bQuery/pull/22/commits
Checks 5 https://github.com/bQuery/bQuery/pull/22/checks
Files changed https://github.com/bQuery/bQuery/pull/22/files
Please reload this pagehttps://github.com/bQuery/bQuery/pull/22/files
Fix router base path handling, bq-if DOM stability, and CHANGELOG consistency https://github.com/bQuery/bQuery/pull/22/files#top
Show all changes 2 commits https://github.com/bQuery/bQuery/pull/22/files
3d8619f Initial plan Copilot Jan 26, 2026 https://github.com/bQuery/bQuery/pull/22/commits/3d8619f5d65caec9a457485461958e3f16f81d04
91fbb84 Fix router base handling, bq-if directive, and CHANGELOG issues Copilot Jan 26, 2026 https://github.com/bQuery/bQuery/pull/22/commits/91fbb84dfd556e74bd7c137f5c215fb4b336d0d8
Clear filters https://github.com/bQuery/bQuery/pull/22/files
Please reload this pagehttps://github.com/bQuery/bQuery/pull/22/files
Please reload this pagehttps://github.com/bQuery/bQuery/pull/22/files
CHANGELOG.md https://github.com/bQuery/bQuery/pull/22/files#diff-06572a96a58dc510037d5efa622f9bec8519bc1beab13c9f251e97e657a9d4ed
router.ts https://github.com/bQuery/bQuery/pull/22/files#diff-a85a0f5e1d8548395d0d121ff26322f9c4259241bb6b86adfedc23439893516a
utils.ts https://github.com/bQuery/bQuery/pull/22/files#diff-ed91f695784c5be004f812d436e4248771746aa8c349115ab03dcd1dd9976357
if.ts https://github.com/bQuery/bQuery/pull/22/files#diff-71533ecb26e4715730e2d55ed1d909d84a2dd2bb733ac759701ca67d49ef7809
router.test.ts https://github.com/bQuery/bQuery/pull/22/files#diff-56c92063910ea376ca11a7f6c8f093e3a4a58b7635a6fdb53ec7912c5f5be269
CHANGELOG.mdhttps://github.com/bQuery/bQuery/pull/22/files#diff-06572a96a58dc510037d5efa622f9bec8519bc1beab13c9f251e97e657a9d4ed
View file https://github.com/bQuery/bQuery/blob/91fbb84dfd556e74bd7c137f5c215fb4b336d0d8/CHANGELOG.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/bQuery/bQuery/pull/22/{{ revealButtonHref }}
https://github.com/bQuery/bQuery/pull/22/files#diff-06572a96a58dc510037d5efa622f9bec8519bc1beab13c9f251e97e657a9d4ed
https://github.com/bQuery/bQuery/pull/22/files#diff-06572a96a58dc510037d5efa622f9bec8519bc1beab13c9f251e97e657a9d4ed
https://github.com/bQuery/bQuery/pull/22/files#diff-06572a96a58dc510037d5efa622f9bec8519bc1beab13c9f251e97e657a9d4ed
https://github.com/bQuery/bQuery/pull/22/files#diff-06572a96a58dc510037d5efa622f9bec8519bc1beab13c9f251e97e657a9d4ed
https://github.com/bQuery/bQuery/pull/22/files#diff-06572a96a58dc510037d5efa622f9bec8519bc1beab13c9f251e97e657a9d4ed
https://github.com/bQuery/bQuery/pull/22/files#diff-06572a96a58dc510037d5efa622f9bec8519bc1beab13c9f251e97e657a9d4ed
https://github.com/bQuery/bQuery/pull/22/files#diff-06572a96a58dc510037d5efa622f9bec8519bc1beab13c9f251e97e657a9d4ed
https://github.com/bQuery/bQuery/pull/22/files#diff-06572a96a58dc510037d5efa622f9bec8519bc1beab13c9f251e97e657a9d4ed
src/router/router.tshttps://github.com/bQuery/bQuery/pull/22/files#diff-a85a0f5e1d8548395d0d121ff26322f9c4259241bb6b86adfedc23439893516a
View file https://github.com/bQuery/bQuery/blob/91fbb84dfd556e74bd7c137f5c215fb4b336d0d8/src/router/router.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/bQuery/bQuery/pull/22/{{ revealButtonHref }}
https://github.com/bQuery/bQuery/pull/22/files#diff-a85a0f5e1d8548395d0d121ff26322f9c4259241bb6b86adfedc23439893516a
https://github.com/bQuery/bQuery/pull/22/files#diff-a85a0f5e1d8548395d0d121ff26322f9c4259241bb6b86adfedc23439893516a
src/router/utils.tshttps://github.com/bQuery/bQuery/pull/22/files#diff-ed91f695784c5be004f812d436e4248771746aa8c349115ab03dcd1dd9976357
View file https://github.com/bQuery/bQuery/blob/91fbb84dfd556e74bd7c137f5c215fb4b336d0d8/src/router/utils.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/bQuery/bQuery/pull/22/{{ revealButtonHref }}
https://github.com/bQuery/bQuery/pull/22/files#diff-ed91f695784c5be004f812d436e4248771746aa8c349115ab03dcd1dd9976357
https://github.com/bQuery/bQuery/pull/22/files#diff-ed91f695784c5be004f812d436e4248771746aa8c349115ab03dcd1dd9976357
src/view/directives/if.tshttps://github.com/bQuery/bQuery/pull/22/files#diff-71533ecb26e4715730e2d55ed1d909d84a2dd2bb733ac759701ca67d49ef7809
View file https://github.com/bQuery/bQuery/blob/91fbb84dfd556e74bd7c137f5c215fb4b336d0d8/src/view/directives/if.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/bQuery/bQuery/pull/22/{{ revealButtonHref }}
https://github.com/bQuery/bQuery/pull/22/files#diff-71533ecb26e4715730e2d55ed1d909d84a2dd2bb733ac759701ca67d49ef7809
https://github.com/bQuery/bQuery/pull/22/files#diff-71533ecb26e4715730e2d55ed1d909d84a2dd2bb733ac759701ca67d49ef7809
https://github.com/bQuery/bQuery/pull/22/files#diff-71533ecb26e4715730e2d55ed1d909d84a2dd2bb733ac759701ca67d49ef7809
tests/router.test.tshttps://github.com/bQuery/bQuery/pull/22/files#diff-56c92063910ea376ca11a7f6c8f093e3a4a58b7635a6fdb53ec7912c5f5be269
View file https://github.com/bQuery/bQuery/blob/91fbb84dfd556e74bd7c137f5c215fb4b336d0d8/tests/router.test.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/bQuery/bQuery/pull/22/{{ revealButtonHref }}
https://github.com/bQuery/bQuery/pull/22/files#diff-56c92063910ea376ca11a7f6c8f093e3a4a58b7635a6fdb53ec7912c5f5be269
https://github.com/bQuery/bQuery/pull/22/files#diff-56c92063910ea376ca11a7f6c8f093e3a4a58b7635a6fdb53ec7912c5f5be269
https://github.com/bQuery/bQuery/pull/22/files#diff-56c92063910ea376ca11a7f6c8f093e3a4a58b7635a6fdb53ec7912c5f5be269
Please reload this pagehttps://github.com/bQuery/bQuery/pull/22/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.