Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Saving a page, header or footer turns a //host/path URL into /host/path, so the Creative Commons image in the footer gives 404

オープン
#638 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@guidol-ive がすでに取り組んでいます。

2026年10月28日 から。

  • #639 @guidol-ive による — オープン

評価

難易度
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 の本文から書いたものです。

説明

Component: User interface Impact: Low Level: Easy Type: Bug Value: Visitors

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.

  1. Log in as administrator on a site at /.
  2. In Settings → site elements, put <img src="//i.creativecommons.org/l/by-sa/3.0/88x31.png"> in the footer and save.
  3. data/hypha.xml now holds src="/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 を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

PlanBCode/hypha のほかの issue

PlanBCode/hypha の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。