Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

首頁 header 及 底部按鈕 的 RSS 連結失效 #2569

Open
typebrook opened this issue Jul 18, 2023 · 6 comments
Open

首頁 header 及 底部按鈕 的 RSS 連結失效 #2569

typebrook opened this issue Jul 18, 2023 · 6 comments

Comments

@typebrook
Copy link
Contributor

typebrook commented Jul 18, 2023

Related: #69 #1760

看來應該要把 https://www.twreporter.org/a/rss2.xml 改為 https://www.twreporter.org/i/rss2.xml

不過我在 https://public.twreporter.org/ 的聲明中,也有看到以下的 RSS 連結:

未免以後還有類似問題,能將這些連結的用途寫在文件裡面嗎?

@nickhsine
Copy link
Collaborator

@typebrook
Copy link
Contributor Author

@nickhsine
footer 的連結也是 https://www.twreporter.org/a/rss2.xml

Screenshot_2023-07-18-13-01-26_1920x2160

@nickhsine
Copy link
Collaborator

https://www.twreporter.org/a/rss2.xml 檔案有問題的點是?

@typebrook
Copy link
Contributor Author

檔案有問題的點是?

Return 301 (Moved Permanently)

雖然 http response 有用 location 指向 https://public.twreporter.org/rss/twreporter-rss.xml
但在 chromium 以外的瀏覽器,或者其它 RSS 應用中不一定能解析

@nickhsine
Copy link
Collaborator

所以 footer 的連結改用 https://public.twreporter.org/rss/twreporter-rss.xml ,是否就可以解決我們的問題?

@typebrook
Copy link
Contributor Author

typebrook commented Jul 19, 2023

所以 footer 的連結改用 https://public.twreporter.org/rss/twreporter-rss.xml ,是否就可以解決我們的問題?

  1. 除了 footer 外,<head> -> <meta> 也有標示 RSS 的連結,這些應該是由 src/html.js 定義的
  2. 報導者的說明文件並沒有提到各種 RSS feed 的位址及用途,所以我不是很肯定。若目前 https://public.twreporter.org/rss/twreporter-rss.xml 適用於全站,那就應該修改。若其它頁面也有相對應的 RSS feed ,也應一併檢查
  3. RSS feed 最好能通過 W3c valicator: https://validator.w3.org/feed/
    你提到的 feed 目前有 waring message: Self reference doesn't match document location

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

No branches or pull requests

2 participants