Google indexes a discussion page using content from other pages

未关闭
#3,370 7 条评论 3 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
48/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
冷清
技术栈
javascript, php
领域
search, web-dev

调研方向

未指定源文件或测试。复现提供的讨论 URL,并比较 crawler 看到的内容与向用户显示的帖子,然后跟踪讨论分页和帖子自动加载的行为。完成标准是每个分页 URL 只向搜索引擎暴露其自身的帖子,并链接到正确的页面。

由索引模型根据 Issue 内容生成。

描述

prio/low type/bug

Bug Report

Current Behavior

Google's crawler indexes page X of a discussion (discussion/?page=X) using also the text/images from other pages. This means that what Google's crawler sees doesn't always match what users see once they open that page.

Example

Google "ok, ma io ho fatto questi test a scopo informativo/illustrativo site:forum.fibra.click"

image
Second result is page 12, but that post belongs to page 10

Expected Behavior
Google's crawler should only look at posts on a specific page, i.e. in the above example Google should link to page 10

Environment

Possible Solutions

  1. (Hacky) Disable javascript for all crawlers (limited to discussions)
  2. Disable posts auto-loading for crawlers, adding a button "load more" that points to the next page
  3. Disable posts auto-loading for all users, adding a button "load more" that enables posts auto-loading
主要语言
PHP
星标
6.8k
派生
891
平均合并
1 天 10 小时
30 天内合并 PR
209

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

flarum/framework 的其他 Issue

查看 flarum/framework 的全部 Issue

相似的 Issue

更多 PHP Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。