René's URL Explorer Experiment


Title: Hash-based challenge parts navigation by loic-brtd · Pull Request #1380 · CodingTrain/thecodingtrain.com · GitHub

Open Graph Title: Hash-based challenge parts navigation by loic-brtd · Pull Request #1380 · CodingTrain/thecodingtrain.com

X Title: Hash-based challenge parts navigation by loic-brtd · Pull Request #1380 · CodingTrain/thecodingtrain.com

Description: Choo choo! 🚂 In response to #1319, I'm giving a go at implementing hash-based navigation between challenge parts. This would allow us to reference a specific challenge part by its URL. Example: https://thecodingtrain.com/challenges/40-word-counter#part-3. A few observations on my current implementation : /challenges/40-word-counter takes us to the 1st part of the challenge /challenges/40-word-counter#part-1 takes us to the 1st part of the challenge /challenges/40-word-counter#part-2 takes us to the 2nd part of the challenge /challenges/40-word-counter#part-3 takes us to the 3rd part of the challenge Whatever hash value is passed to the URL by the user, the URL is not modified (unless we click on another part link or prev/next button of course) : /challenges/40-word-counter#part-42 takes us to the 3rd (last) part of the challenge (#part-42 stays in the URL) /challenges/40-word-counter#part-abc takes us to the 1st part of the challenge (#part-abc stays in the URL) I added this on challenge and track pages containing multi-part challenges. Previews : https://deploy-preview-1380--codingtrain.netlify.app/challenges/40-word-counter https://deploy-preview-1380--codingtrain.netlify.app/tracks/games/72-frogger#part-3 I'm still working on cleaning up some of the code. I welcome any feedback on this feature 😀

Open Graph Description: Choo choo! 🚂 In response to #1319, I'm giving a go at implementing hash-based navigation between challenge parts. This would allow us to reference a specific challenge part by its URL. Example:...

X Description: Choo choo! 🚂 In response to #1319, I'm giving a go at implementing hash-based navigation between challenge parts. This would allow us to reference a specific challenge part by its URL. Exam...

Opengraph URL: https://github.com/CodingTrain/thecodingtrain.com/pull/1380

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.112.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:0498f5a1-c6f6-2b50-daf8-a2f5b65368e8
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id8E1C:3AB7CB:18DCBCA:2231990:6B058ADD
html-safe-nonce32c3f5f37cb23995d77ff5de2672cc9a7afd367facc0fe3963f2ece047459412
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RTFDOjNBQjdDQjoxOERDQkNBOjIyMzE5OTA6NkIwNThBREQiLCJ2aXNpdG9yX2lkIjoiMzE2Mzc1NDcxMzk3NjI0NDk1NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacd42dc2a050505adad5184dd75f58c197896f595542b80bd501d9d517a38d84a5
hovercard-subject-tagpull_request:1685512776
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/CodingTrain/thecodingtrain.com/pull/1380/files
twitter:imagehttps://avatars.githubusercontent.com/u/37326143?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/37326143?s=400&v=4
og:image:altChoo choo! 🚂 In response to #1319, I'm giving a go at implementing hash-based navigation between challenge parts. This would allow us to reference a specific challenge part by its URL. Example:...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None808d57ad26095794a9e3681aed736bd67e8e82b1f5650d6c1e68f99382f8030c
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/CodingTrain/thecodingtrain.com git https://github.com/CodingTrain/thecodingtrain.com.git
octolytics-dimension-user_id18553964
octolytics-dimension-user_loginCodingTrain
octolytics-dimension-repository_id399865017
octolytics-dimension-repository_nwoCodingTrain/thecodingtrain.com
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id399865017
octolytics-dimension-repository_network_root_nwoCodingTrain/thecodingtrain.com
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
release62e32c52ec1c22b5bb5c18be1c0c471472c89540
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/CodingTrain/thecodingtrain.com/pull/1380/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FCodingTrain%2Fthecodingtrain.com%2Fpull%2F1380%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%2FCodingTrain%2Fthecodingtrain.com%2Fpull%2F1380%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=CodingTrain%2Fthecodingtrain.com
Reloadhttps://github.com/CodingTrain/thecodingtrain.com/pull/1380/files
Reloadhttps://github.com/CodingTrain/thecodingtrain.com/pull/1380/files
Reloadhttps://github.com/CodingTrain/thecodingtrain.com/pull/1380/files
CodingTrainhttps://github.com/CodingTrain
thecodingtrain.comhttps://github.com/CodingTrain/thecodingtrain.com
Codehttps://github.com/CodingTrain/thecodingtrain.com
Issues15 (15)https://github.com/CodingTrain/thecodingtrain.com/issues
Pull requests3 (3)https://github.com/CodingTrain/thecodingtrain.com/pulls
Actionshttps://github.com/CodingTrain/thecodingtrain.com/actions
Projectshttps://github.com/CodingTrain/thecodingtrain.com/projects
Security and qualityhttps://github.com/CodingTrain/thecodingtrain.com/security
Insightshttps://github.com/CodingTrain/thecodingtrain.com/insights
Sign up for GitHub https://github.com/signup?return_to=%2FCodingTrain%2Fthecodingtrain.com%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2FCodingTrain%2Fthecodingtrain.com%2Fissues%2Fnew%2Fchoose
shiffmanhttps://github.com/shiffman
CodingTrain:mainhttps://github.com/CodingTrain/thecodingtrain.com/tree/main
loic-brtd:1319-hash-based-challenge-parts-navigationhttps://github.com/loic-brtd/thecodingtrain.com/tree/1319-hash-based-challenge-parts-navigation
Conversation 10 https://github.com/CodingTrain/thecodingtrain.com/pull/1380
Commits 7 https://github.com/CodingTrain/thecodingtrain.com/pull/1380/commits
Checks 0 https://github.com/CodingTrain/thecodingtrain.com/pull/1380/checks
Files changed https://github.com/CodingTrain/thecodingtrain.com/pull/1380/files
Please reload this pagehttps://github.com/CodingTrain/thecodingtrain.com/pull/1380/files
Hash-based challenge parts navigation https://github.com/CodingTrain/thecodingtrain.com/pull/1380/files#top
Show all changes 7 commits https://github.com/CodingTrain/thecodingtrain.com/pull/1380/files
c0fa067 First working draft of hash-based navigation for challenge parts loic-brtd Jan 18, 2024 https://github.com/CodingTrain/thecodingtrain.com/pull/1380/commits/c0fa06707ce1b2eb5d579f49e7a270b24853a742
688a20c Documentation and minor correction loic-brtd Jan 19, 2024 https://github.com/CodingTrain/thecodingtrain.com/pull/1380/commits/688a20cc5f395662768fe7a75d298f78ee9d3baa
049541b Adding to object in Tracks VideoSection loic-brtd Jan 19, 2024 https://github.com/CodingTrain/thecodingtrain.com/pull/1380/commits/049541b5dad44451c741f80f717ed3f50bbbd6a1
d4fc1d1 Closing timeline panel on video selection (on mobile) loic-brtd Jan 21, 2024 https://github.com/CodingTrain/thecodingtrain.com/pull/1380/commits/d4fc1d1e6f72f5ad3cd390c1146405354bd7b253
d90a090 Removes URL hash (fragment) for part 1 of a challenge loic-brtd Jan 23, 2024 https://github.com/CodingTrain/thecodingtrain.com/pull/1380/commits/d90a090e3387ded29d4c5e7dd05df7ea57eff9d7
7e7771d Fix small documentation error loic-brtd Jan 23, 2024 https://github.com/CodingTrain/thecodingtrain.com/pull/1380/commits/7e7771d111f11ef2dc3097a94d4897e8a18c1fac
9e88428 Simplify usePaths function loic-brtd Jan 24, 2024 https://github.com/CodingTrain/thecodingtrain.com/pull/1380/commits/9e884282e77bdecbcbcdd03c64639faac39f5691
Clear filters https://github.com/CodingTrain/thecodingtrain.com/pull/1380/files
Please reload this pagehttps://github.com/CodingTrain/thecodingtrain.com/pull/1380/files
Please reload this pagehttps://github.com/CodingTrain/thecodingtrain.com/pull/1380/files
PartsTimeline.js https://github.com/CodingTrain/thecodingtrain.com/pull/1380/files#diff-7b924aecd987d21d73a68bb79f8c3a260a4c11e44afe3ecd3c7fa0652cc584db
VideoSection.js https://github.com/CodingTrain/thecodingtrain.com/pull/1380/files#diff-4a654d290d04ac9e10c23ce9ba9884dbee12388f33b35561647c5a1b95ed3424
OverviewTimeline.js https://github.com/CodingTrain/thecodingtrain.com/pull/1380/files#diff-cd2825cc51f9c97855efa1dd0ebe3373e814df49b6ad4d6d6bb8bd8d4132492d
VideoSection.js https://github.com/CodingTrain/thecodingtrain.com/pull/1380/files#diff-906afbaeb48b2dc3bab403d8a34adbff02a9aaef2f9c74da8fb368e1b0f71008
index.js https://github.com/CodingTrain/thecodingtrain.com/pull/1380/files#diff-5c0ffd3425d6796d53488c23b0f60c9412249285e30a28c520193c33b5e23bbd
index.js https://github.com/CodingTrain/thecodingtrain.com/pull/1380/files#diff-ebd8554ec43b07366bd40d16b09d1d063d9e8d5921fa30de4eb80bffdf82668d
src/components/challenges/PartsTimeline.jshttps://github.com/CodingTrain/thecodingtrain.com/pull/1380/files#diff-7b924aecd987d21d73a68bb79f8c3a260a4c11e44afe3ecd3c7fa0652cc584db
View file https://github.com/loic-brtd/thecodingtrain.com/blob/9e884282e77bdecbcbcdd03c64639faac39f5691/src/components/challenges/PartsTimeline.js
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/CodingTrain/thecodingtrain.com/pull/1380/{{ revealButtonHref }}
https://github.com/CodingTrain/thecodingtrain.com/pull/1380/files#diff-7b924aecd987d21d73a68bb79f8c3a260a4c11e44afe3ecd3c7fa0652cc584db
https://github.com/CodingTrain/thecodingtrain.com/pull/1380/files#diff-7b924aecd987d21d73a68bb79f8c3a260a4c11e44afe3ecd3c7fa0652cc584db
https://github.com/CodingTrain/thecodingtrain.com/pull/1380/files#diff-7b924aecd987d21d73a68bb79f8c3a260a4c11e44afe3ecd3c7fa0652cc584db
src/components/challenges/VideoSection.jshttps://github.com/CodingTrain/thecodingtrain.com/pull/1380/files#diff-4a654d290d04ac9e10c23ce9ba9884dbee12388f33b35561647c5a1b95ed3424
View file https://github.com/loic-brtd/thecodingtrain.com/blob/9e884282e77bdecbcbcdd03c64639faac39f5691/src/components/challenges/VideoSection.js
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/CodingTrain/thecodingtrain.com/pull/1380/{{ revealButtonHref }}
https://github.com/CodingTrain/thecodingtrain.com/pull/1380/files#diff-4a654d290d04ac9e10c23ce9ba9884dbee12388f33b35561647c5a1b95ed3424
https://github.com/CodingTrain/thecodingtrain.com/pull/1380/files#diff-4a654d290d04ac9e10c23ce9ba9884dbee12388f33b35561647c5a1b95ed3424
https://github.com/CodingTrain/thecodingtrain.com/pull/1380/files#diff-4a654d290d04ac9e10c23ce9ba9884dbee12388f33b35561647c5a1b95ed3424
https://github.com/CodingTrain/thecodingtrain.com/pull/1380/files#diff-4a654d290d04ac9e10c23ce9ba9884dbee12388f33b35561647c5a1b95ed3424
https://github.com/CodingTrain/thecodingtrain.com/pull/1380/files#diff-4a654d290d04ac9e10c23ce9ba9884dbee12388f33b35561647c5a1b95ed3424
src/components/tracks/OverviewTimeline.jshttps://github.com/CodingTrain/thecodingtrain.com/pull/1380/files#diff-cd2825cc51f9c97855efa1dd0ebe3373e814df49b6ad4d6d6bb8bd8d4132492d
View file https://github.com/loic-brtd/thecodingtrain.com/blob/9e884282e77bdecbcbcdd03c64639faac39f5691/src/components/tracks/OverviewTimeline.js
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/CodingTrain/thecodingtrain.com/pull/1380/{{ revealButtonHref }}
https://github.com/CodingTrain/thecodingtrain.com/pull/1380/files#diff-cd2825cc51f9c97855efa1dd0ebe3373e814df49b6ad4d6d6bb8bd8d4132492d
https://github.com/CodingTrain/thecodingtrain.com/pull/1380/files#diff-cd2825cc51f9c97855efa1dd0ebe3373e814df49b6ad4d6d6bb8bd8d4132492d
https://github.com/CodingTrain/thecodingtrain.com/pull/1380/files#diff-cd2825cc51f9c97855efa1dd0ebe3373e814df49b6ad4d6d6bb8bd8d4132492d
https://github.com/CodingTrain/thecodingtrain.com/pull/1380/files#diff-cd2825cc51f9c97855efa1dd0ebe3373e814df49b6ad4d6d6bb8bd8d4132492d
https://github.com/CodingTrain/thecodingtrain.com/pull/1380/files#diff-cd2825cc51f9c97855efa1dd0ebe3373e814df49b6ad4d6d6bb8bd8d4132492d
https://github.com/CodingTrain/thecodingtrain.com/pull/1380/files#diff-cd2825cc51f9c97855efa1dd0ebe3373e814df49b6ad4d6d6bb8bd8d4132492d
https://github.com/CodingTrain/thecodingtrain.com/pull/1380/files#diff-cd2825cc51f9c97855efa1dd0ebe3373e814df49b6ad4d6d6bb8bd8d4132492d
https://github.com/CodingTrain/thecodingtrain.com/pull/1380/files#diff-cd2825cc51f9c97855efa1dd0ebe3373e814df49b6ad4d6d6bb8bd8d4132492d
https://github.com/CodingTrain/thecodingtrain.com/pull/1380/files#diff-cd2825cc51f9c97855efa1dd0ebe3373e814df49b6ad4d6d6bb8bd8d4132492d
https://github.com/CodingTrain/thecodingtrain.com/pull/1380/files#diff-cd2825cc51f9c97855efa1dd0ebe3373e814df49b6ad4d6d6bb8bd8d4132492d
src/components/tracks/VideoSection.jshttps://github.com/CodingTrain/thecodingtrain.com/pull/1380/files#diff-906afbaeb48b2dc3bab403d8a34adbff02a9aaef2f9c74da8fb368e1b0f71008
View file https://github.com/loic-brtd/thecodingtrain.com/blob/9e884282e77bdecbcbcdd03c64639faac39f5691/src/components/tracks/VideoSection.js
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/CodingTrain/thecodingtrain.com/pull/1380/{{ revealButtonHref }}
https://github.com/CodingTrain/thecodingtrain.com/pull/1380/files#diff-906afbaeb48b2dc3bab403d8a34adbff02a9aaef2f9c74da8fb368e1b0f71008
https://github.com/CodingTrain/thecodingtrain.com/pull/1380/files#diff-906afbaeb48b2dc3bab403d8a34adbff02a9aaef2f9c74da8fb368e1b0f71008
https://github.com/CodingTrain/thecodingtrain.com/pull/1380/files#diff-906afbaeb48b2dc3bab403d8a34adbff02a9aaef2f9c74da8fb368e1b0f71008
https://github.com/CodingTrain/thecodingtrain.com/pull/1380/files#diff-906afbaeb48b2dc3bab403d8a34adbff02a9aaef2f9c74da8fb368e1b0f71008
src/hooks/index.jshttps://github.com/CodingTrain/thecodingtrain.com/pull/1380/files#diff-5c0ffd3425d6796d53488c23b0f60c9412249285e30a28c520193c33b5e23bbd
View file https://github.com/loic-brtd/thecodingtrain.com/blob/9e884282e77bdecbcbcdd03c64639faac39f5691/src/hooks/index.js
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/CodingTrain/thecodingtrain.com/pull/1380/{{ revealButtonHref }}
https://github.com/CodingTrain/thecodingtrain.com/pull/1380/files#diff-5c0ffd3425d6796d53488c23b0f60c9412249285e30a28c520193c33b5e23bbd
src/utils/index.jshttps://github.com/CodingTrain/thecodingtrain.com/pull/1380/files#diff-ebd8554ec43b07366bd40d16b09d1d063d9e8d5921fa30de4eb80bffdf82668d
View file https://github.com/loic-brtd/thecodingtrain.com/blob/9e884282e77bdecbcbcdd03c64639faac39f5691/src/utils/index.js
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/CodingTrain/thecodingtrain.com/pull/1380/{{ revealButtonHref }}
https://github.com/CodingTrain/thecodingtrain.com/pull/1380/files#diff-ebd8554ec43b07366bd40d16b09d1d063d9e8d5921fa30de4eb80bffdf82668d
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.