Skip to content

fix #4428 【システム】サブフォルダに設置するとプレビューがエラーになる件を修正#4430

Open
kaburk wants to merge 1 commit into
baserproject:5.2.xfrom
kaburk:5.2.x-#4428
Open

fix #4428 【システム】サブフォルダに設置するとプレビューがエラーになる件を修正#4430
kaburk wants to merge 1 commit into
baserproject:5.2.xfrom
kaburk:5.2.x-#4428

Conversation

@kaburk

@kaburk kaburk commented Jun 19, 2026

Copy link
Copy Markdown
Collaborator

フォーラムからの不具合の件の修正です。
よろしくお願いします。

Copilot AI review requested due to automatic review settings June 19, 2026 08:24
@github-actions github-actions Bot requested review from katokaisya and ryuring June 19, 2026 08:24

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

本PRは、baserCMS をサブフォルダ配下(例: /sub)に設置している場合に、管理画面のプレビューURL解決が失敗してエラーになる問題(#4428)を修正し、あわせて回帰テストを追加するものです。

Changes:

  • プレビューURL生成処理で、リクエストの base(サブフォルダ)を考慮してURLパスを補正するロジックを追加
  • サブフォルダ運用時のトップページプレビュー解決のテストを追加
  • サブフォルダ運用時のブログ記事URLが BcBlog のルーティングに解決されるテストを追加

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
plugins/baser-core/src/Controller/Admin/PreviewController.php base 属性を考慮してプレビュー対象URLのパスを補正し、ルーティング解決を安定化
plugins/baser-core/tests/TestCase/Controller/Admin/PreviewControllerTest.php サブフォルダ運用時のプレビューURL解決(固定ページ/ブログ)に関する回帰テストを追加

Comment thread plugins/baser-core/src/Controller/Admin/PreviewController.php

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

Comment on lines +109 to +113
if (!empty($parseUrl['query'])) {
$url .= '?' . $parseUrl['query'];
}
}
}
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.

4 participants