Repository navigation
feat(frontend): link to TorMap Lite instead of redirecting - #679
Merged
Merged
Conversation
Browsers without JavaScript no longer get a <noscript> meta refresh to Lite. The notice shown instead of the map links to Lite, so visitors choose it deliberately. The plugin is renamed from lite-redirect to lite-link. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SWRrkMpza8avUhoMVbQH33
|
Visit the preview URL for this PR (updated for commit 361daf4): https://tormap-36f44--pr679-claude-project-threa-8nkwb3b5.web.app (expires Sat, 07 Nov 2026 08:06:44 GMT) 🔥 via Firebase Hosting GitHub Action 🌎 Sign: 0c1f71965de18e60b0e686b0d0356977fec090dc |
…ad-8zzd2t # Conflicts: # frontend/vite.config.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requested by ju · project thread
Change
Visitors should pick TorMap Lite deliberately, not be redirected automatically.
<noscript>meta refresh to/lite/. WithVITE_LITE_ENABLED=true, browsers without JavaScript now only see "This map needs JavaScript. TorMap Lite works without it." with a link. The About dialog link is unchanged.plugins/lite-redirect.tstoplugins/lite-link.ts(liteLink) and updates its tests, comments, and both READMEs.Testing
yarn vitest run plugins,yarn eslinton the changed files, andyarn buildpass.yarn startwith the flag on, Chromium with JavaScript disabled stays onlocalhost:3000and shows the notice, with the link pointing tohttp://localhost:8080/lite/.Generated by Claude Code