René's URL Explorer Experiment


Title: fix(lab-ops-hub): keep the empty-query marker before the fragment (#654) by dezren39 · Pull Request #663 · developing-today/code · GitHub

Open Graph Title: fix(lab-ops-hub): keep the empty-query marker before the fragment (#654) by dezren39 · Pull Request #663 · developing-today/code

X Title: fix(lab-ops-hub): keep the empty-query marker before the fragment (#654) by dezren39 · Pull Request #663 · developing-today/code

Description: Fixes #654 Problem PR #648 (#639) re-attached the empty ?/# markers as a suffix after every geturl() rebuild. When the query is empty and the fragment is non-empty, the ? therefore landed after the fragment: http://example.com/path?#frag came back as http://example.com/path#frag? — a different URL (fragment corrupted to frag?, empty query absent) than the Worker returns, on the plain, percent-decoded-host and canonical-IP return paths alike. Solution New _attach_empty_query_fragment_markers(rebuilt, source_url) helper: the empty-query marker is inserted before the # that introduces a non-empty fragment in the rebuilt URL; the empty-fragment marker (fragment empty by definition) remains a suffix. ?#, ?x#, #frag?notquery and all other #639 cases are unchanged. All three rebuild sites now use it instead of geturl() + markers: _url_with_host, _normalize_validated_url and _url_with_encoded_components. The fetcher's _split_userinfo rebuild, which dropped the markers entirely, uses it too. Verdicts unchanged; no accept/refuse change. Tests New Python test test_returns_empty_query_marker_before_a_nonempty_fragment: the issue battery plus percent-decoded / IP / userinfo / encoded-fragment arms, #639 controls, a _split_userinfo pin and a redirect-handler pin. Ablation exact: with only app.py reverted, only this test fails, with the exact path#frag? divergence. TS pin added to the #639 Worker test for the ?#frag spellings (Worker already returns them). Python 59/59 and TS 39/39 locally; ruff format clean. Differential vs the real Worker validator under Bun over 480 generated spellings (10 hosts × 4 paths × 12 tails, including ?#frag, ?#, ?x#frag, #frag?notquery): zero differences in verdict or returned form. Single-repo: no validate_crawl_url/validateCrawlUrl copy in the opencode, openchamber or nix clones (git-grep clean). Need help on this PR? Tag @codesmith-bot with what you need.

Open Graph Description: Fixes #654 Problem PR #648 (#639) re-attached the empty ?/# markers as a suffix after every geturl() rebuild. When the query is empty and the fragment is non-empty, the ? therefore landed after the...

X Description: Fixes #654 Problem PR #648 (#639) re-attached the empty ?/# markers as a suffix after every geturl() rebuild. When the query is empty and the fragment is non-empty, the ? therefore landed after the...

Opengraph URL: https://github.com/developing-today/code/pull/663

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.114.3

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:669596d8-37c3-5805-ac32-e5740e39a431
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idAC86:1D51B:1439DE4:1B33730:6B069C1D
html-safe-nonceca43bd95f3054f5a205063233344e6f85688ccd1de4d14d3e9b6a4d7dff243c4
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQzg2OjFENTFCOjE0MzlERTQ6MUIzMzczMDo2QjA2OUMxRCIsInZpc2l0b3JfaWQiOiIzNjg1Njk3NjI1MzI1NDc2ODkzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac9bbd4e39488c4ff057b26c9358d8c89408c8b357d9d28ed6119ebecdf87c3577
hovercard-subject-tagpull_request:4981076501
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/developing-today/code/pull/663/files
twitter:imagehttps://avatars.githubusercontent.com/u/11225574?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/11225574?s=400&v=4
og:image:altFixes #654 Problem PR #648 (#639) re-attached the empty ?/# markers as a suffix after every geturl() rebuild. When the query is empty and the fragment is non-empty, the ? therefore landed after the...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None4462ff7ebfd3d551f202659f2423dae617b6849d23b1df6465dc504ef497d14a
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/developing-today/code git https://github.com/developing-today/code.git
octolytics-dimension-user_id26439447
octolytics-dimension-user_logindeveloping-today
octolytics-dimension-repository_id627308783
octolytics-dimension-repository_nwodeveloping-today/code
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id627308783
octolytics-dimension-repository_network_root_nwodeveloping-today/code
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
release6d3909414814ff86ce7da4c51a0f4918a13fb41b
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/developing-today/code/pull/663/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fdeveloping-today%2Fcode%2Fpull%2F663%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
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
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://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/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fdeveloping-today%2Fcode%2Fpull%2F663%2Ffiles
Sign uphttps://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=developing-today%2Fcode
Reloadhttps://github.com/developing-today/code/pull/663/files
Reloadhttps://github.com/developing-today/code/pull/663/files
Reloadhttps://github.com/developing-today/code/pull/663/files
developing-todayhttps://github.com/developing-today
codehttps://github.com/developing-today/code
Codehttps://github.com/developing-today/code
Issues1.1k (1.1k)https://github.com/developing-today/code/issues
Pull requests176 (176)https://github.com/developing-today/code/pulls
Discussionshttps://github.com/developing-today/code/discussions
Actionshttps://github.com/developing-today/code/actions
Projectshttps://github.com/developing-today/code/projects
Wikihttps://github.com/developing-today/code/wiki
Security and qualityhttps://github.com/developing-today/code/security
Insightshttps://github.com/developing-today/code/insights
Sign up for GitHub https://github.com/signup?return_to=%2Fdeveloping-today%2Fcode%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fdeveloping-today%2Fcode%2Fissues%2Fnew%2Fchoose
dezren39https://github.com/dezren39
mainhttps://github.com/developing-today/code/tree/main
sweep/654-empty-query-marker-fragmenthttps://github.com/developing-today/code/tree/sweep/654-empty-query-marker-fragment
Conversation 2 https://github.com/developing-today/code/pull/663
Commits 1 https://github.com/developing-today/code/pull/663/commits
Checks 4 https://github.com/developing-today/code/pull/663/checks
Files changed https://github.com/developing-today/code/pull/663/files
Please reload this pagehttps://github.com/developing-today/code/pull/663/files
fix(lab-ops-hub): keep the empty-query marker before the fragment (#654) https://github.com/developing-today/code/pull/663/files#top
Show all changes 1 commit https://github.com/developing-today/code/pull/663/files
3c999f9 fix(lab-ops-hub): keep the empty-query marker before the fragment in … Oct 23, 2026 https://github.com/developing-today/code/pull/663/commits/3c999f9773e2a8c607a1609e00d818c82ae0cf0d
Clear filters https://github.com/developing-today/code/pull/663/files
Please reload this pagehttps://github.com/developing-today/code/pull/663/files
Please reload this pagehttps://github.com/developing-today/code/pull/663/files
app.py https://github.com/developing-today/code/pull/663/files#diff-7e36da59178c0f3782c4c8563677c22902ad4e72938742495455c3d778f20361
lib.test.ts https://github.com/developing-today/code/pull/663/files#diff-f00332f6be3f438e6ebed5a0e709dc6b997a0e9339be4de9023e0450ea6358d8
test_container_validate.py https://github.com/developing-today/code/pull/663/files#diff-a4e51f0c429047ab2d4d87a7a1d445f2385af6afeb356766cb44951115d5c2ad
pkgs/lab-ops-hub/container/app.pyhttps://github.com/developing-today/code/pull/663/files#diff-7e36da59178c0f3782c4c8563677c22902ad4e72938742495455c3d778f20361
View file https://github.com/developing-today/code/blob/3c999f9773e2a8c607a1609e00d818c82ae0cf0d/pkgs/lab-ops-hub/container/app.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/developing-today/code/pull/663/{{ revealButtonHref }}
https://github.com/developing-today/code/pull/663/files#diff-7e36da59178c0f3782c4c8563677c22902ad4e72938742495455c3d778f20361
https://github.com/developing-today/code/pull/663/files#diff-7e36da59178c0f3782c4c8563677c22902ad4e72938742495455c3d778f20361
https://github.com/developing-today/code/pull/663/files#diff-7e36da59178c0f3782c4c8563677c22902ad4e72938742495455c3d778f20361
https://github.com/developing-today/code/pull/663/files#diff-7e36da59178c0f3782c4c8563677c22902ad4e72938742495455c3d778f20361
https://github.com/developing-today/code/pull/663/files#diff-7e36da59178c0f3782c4c8563677c22902ad4e72938742495455c3d778f20361
https://github.com/developing-today/code/pull/663/files#diff-7e36da59178c0f3782c4c8563677c22902ad4e72938742495455c3d778f20361
https://github.com/developing-today/code/pull/663/files#diff-7e36da59178c0f3782c4c8563677c22902ad4e72938742495455c3d778f20361
https://github.com/developing-today/code/pull/663/files#diff-7e36da59178c0f3782c4c8563677c22902ad4e72938742495455c3d778f20361
https://github.com/developing-today/code/pull/663/files#diff-7e36da59178c0f3782c4c8563677c22902ad4e72938742495455c3d778f20361
https://github.com/developing-today/code/pull/663/files#diff-7e36da59178c0f3782c4c8563677c22902ad4e72938742495455c3d778f20361
https://github.com/developing-today/code/pull/663/files#diff-7e36da59178c0f3782c4c8563677c22902ad4e72938742495455c3d778f20361
https://github.com/developing-today/code/pull/663/files#diff-7e36da59178c0f3782c4c8563677c22902ad4e72938742495455c3d778f20361
pkgs/lab-ops-hub/test/lib.test.tshttps://github.com/developing-today/code/pull/663/files#diff-f00332f6be3f438e6ebed5a0e709dc6b997a0e9339be4de9023e0450ea6358d8
View file https://github.com/developing-today/code/blob/3c999f9773e2a8c607a1609e00d818c82ae0cf0d/pkgs/lab-ops-hub/test/lib.test.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/developing-today/code/pull/663/{{ revealButtonHref }}
https://github.com/developing-today/code/pull/663/files#diff-f00332f6be3f438e6ebed5a0e709dc6b997a0e9339be4de9023e0450ea6358d8
https://github.com/developing-today/code/pull/663/files#diff-f00332f6be3f438e6ebed5a0e709dc6b997a0e9339be4de9023e0450ea6358d8
pkgs/lab-ops-hub/test/test_container_validate.pyhttps://github.com/developing-today/code/pull/663/files#diff-a4e51f0c429047ab2d4d87a7a1d445f2385af6afeb356766cb44951115d5c2ad
View file https://github.com/developing-today/code/blob/3c999f9773e2a8c607a1609e00d818c82ae0cf0d/pkgs/lab-ops-hub/test/test_container_validate.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/developing-today/code/pull/663/{{ revealButtonHref }}
https://github.com/developing-today/code/pull/663/files#diff-a4e51f0c429047ab2d4d87a7a1d445f2385af6afeb356766cb44951115d5c2ad
https://github.com/developing-today/code/pull/663/files#diff-a4e51f0c429047ab2d4d87a7a1d445f2385af6afeb356766cb44951115d5c2ad
Please reload this pagehttps://github.com/developing-today/code/pull/663/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

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlno-cache

Viewport: width=device-width


URLs of crawlers that visited me.