Skip to content

feat(frontend): link to TorMap Lite instead of redirecting - #679

Merged
JuliusHenke merged 2 commits into
masterfrom
claude/project-thread-8zzd2t
Nov 4, 2026
Merged

JuliusHenke merged 2 commits into
masterfrom
claude/project-thread-8zzd2t

Conversation

@JuliusHenke

Copy link
Copy Markdown
Member

Requested by ju · project thread

Change

Visitors should pick TorMap Lite deliberately, not be redirected automatically.

  • Removes the <noscript> meta refresh to /lite/. With VITE_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.
  • Renames plugins/lite-redirect.ts to plugins/lite-link.ts (liteLink) and updates its tests, comments, and both READMEs.

Testing

  • yarn vitest run plugins, yarn eslint on the changed files, and yarn build pass.
  • On yarn start with the flag on, Chromium with JavaScript disabled stays on localhost:3000 and shows the notice, with the link pointing to http://localhost:8080/lite/.

Generated by Claude Code

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
@JuliusHenke JuliusHenke self-assigned this Nov 3, 2026
@github-actions

github-actions Bot commented Nov 3, 2026 •

Copy link
Copy Markdown

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
@JuliusHenke
JuliusHenke merged commit 3950850 into master Nov 4, 2026
16 checks passed
@JuliusHenke
JuliusHenke deleted the claude/project-thread-8zzd2t branch November 4, 2026 08:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants