Saving a page, header or footer turns a //host/path URL into /host/path, so the Creative Commons image in the footer gives 404
メンテナーはふだん 1 日以内に返信
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 30/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 停滞
- 技術スタック
- javascript
- 領域
- backend
調査の方向性
Read hypha_make_relative() in system/core/base.php and trace how wikify() uses it when saving site elements. Check the function’s behavior for URLs beginning with // and compare it with the root path removal described in the issue. Done means protocol-relative URLs remain unchanged after saving; the issue reports an open pull request, so the work is already underway.
索引モデルが issue の本文から書いたものです。
説明
Place. hypha_make_relative() in system/core/base.php (main 41482e9), called by wikify() when a page, the header, the footer or the menu is saved.
Problem. A protocol-relative URL (//host/path) loses its first slash on a site installed at /. The function removes the root path of the site (/) from every URL that starts with it, so //i.creativecommons.org/l/by-sa/3.0/88x31.png becomes /i.creativecommons.org/l/by-sa/3.0/88x31.png, a path on the site itself.
Effect. Sites installed with the installer of 2020 (145abcc) have the Creative Commons image in their footer as //i.creativecommons.org/.... After the footer is saved once in Settings, the image gives 404 on every page, and the browser console reports it. The same happens to any image or link written as //host/path in a page.
Reproduce.
- Log in as administrator on a site at
/. - In Settings → site elements, put
<img src="//i.creativecommons.org/l/by-sa/3.0/88x31.png">in the footer and save. data/hypha.xmlnow holdssrc="/i.creativecommons.org/l/by-sa/3.0/88x31.png"; the page shows a broken image.
Fix. Return a URL that starts with // unchanged before the root path is removed. A footer that was already changed has to be corrected once by hand, for example to https://i.creativecommons.org/l/by-sa/3.0/88x31.png.
A pull request follows.
🤖 Generated with Claude Code
- 主要言語
- JavaScript
- スター
- 5
- フォーク
- 9
- 平均マージ
- 18時間 7分
- マージ済み PR(30日)
- 11
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
PlanBCode/hypha のほかの issue
-
Component: User interface Impact: Low Level: Easy Pagetype: Peer reviewed article Type: Bug Value: Visitors
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
メンテナーはふだん 1 日以内に返信
-
Impact: Medium Level: Easy Type: Bug Value: Users
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信
-
Impact: Low Level: Easy Pagetype: Festival Type: Bug Value: Coders
難易度 1/5 1時間未満 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信
-
Impact: Medium Level: Easy Pagetype: Mailinglist Type: Bug Value: Users
難易度 2/5 1〜3時間 初心者へのやさしさ 79/100
メンテナーはふだん 1 日以内に返信
-
Impact: Low Level: Easy Type: Bug Value: Coders
難易度 1/5 1〜3時間 初心者へのやさしさ 85/100
PlanBCode/hypha#586 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
PlanBCode/hypha の issue をすべて見る
似ている issue
-
FEATURE REQUEST
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
linuxmint/cinnamon-spices-extensions#1193 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
Fei2411/DeepSeek-Bot#703 ·
-
area:web first-timers-only good first issue
難易度 1/5 1時間未満 初心者へのやさしさ 95/100
career-ops-hq/career-ops#6264 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 83/100
cline/mcp-marketplace#3394 ·
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 77/100
exelearning/exelearning#2677 ·
メンテナーはふだん 1 日以内に返信