Skip to content

fix: 统一 clean URL 并完善高流量计算器 - #229

Merged
chicogong merged 5 commits into
masterfrom
fix/gsc-growth-foundations
Aug 29, 2026
Merged

fix: 统一 clean URL 并完善高流量计算器#229
chicogong merged 5 commits into
masterfrom
fix/gsc-growth-foundations

Conversation

@chicogong

Copy link
Copy Markdown
Owner

背景

为 Google Search Console 的收录与 canonical 信号打基础,同时修复折扣计算器和两地距离计算器中影响实际使用的产品质量问题。首页封面和视觉设计未调整。

变更

  • 统一 1088 个工具页的 canonical、Open Graph、JSON-LD、sitemap、llms.txt 与站内链接为最终 clean URL
  • 保留 file:// 直接打开时的物理 .html 回退;HTTP 用户导航使用 clean URL
  • 为同步脚本增加 URL 生成单一规则及源 HTML 门禁,避免后续回退
  • 开发服务器支持 clean URL,拒绝路径逃逸和畸形 URL,并仅监听本机
  • 修复折扣计算器中文折扣语义、计算结果、非法原价/折扣边界及无障碍状态
  • 完善两地距离计算器中文信息、公里/英里结果、坐标范围校验、键盘与移动端体验
  • 稳定 MCP guide 布局回归与 Playwright 剪贴板权限配置

URL 相关页面改动数量较大,主要是生成器驱动的一次性机械迁移;同步脚本二次运行对工具页无新增修改。

验证

  • npm test — 74/74
  • npm run lint — HTMLHint 1119 文件、Stylelint、ESLint 全部通过
  • npm run format:check — 通过
  • npm run build — 通过
  • PORT=4181 npx playwright test — 25/25
  • git diff --check — 通过

独立验收重点

  • HTTP clean URL 与 file:// 回退导航
  • malformed URL 返回 400 后开发服务仍存活
  • 折扣计算器自定义折扣、负数原价及 320px 布局
  • 距离计算器纬经度边界、北京到上海结果与键盘路径

@vercel

vercel Bot commented Aug 27, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
html-tools Ready Ready Preview Aug 29, 2026 4:52am

@netlify

netlify Bot commented Aug 27, 2026

Copy link
Copy Markdown

Deploy Preview for localtools ready!

Name Link
🔨 Latest commit e353c2a
🔍 Latest deploy log https://app.netlify.com/projects/localtools/deploys/6a926591566b6e00084bb058
😎 Deploy Preview https://deploy-preview-229--localtools.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: ad235ecc48

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread assets/js/main.js
Comment thread scripts/dev.mjs Outdated
@chicogong
chicogong merged commit c8c7ec6 into master Aug 29, 2026
8 checks passed
@chicogong
chicogong deleted the fix/gsc-growth-foundations branch August 29, 2026 04:56
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.

1 participant