Skip to content

Commit

Permalink
サブサイトを利用している場合、内部リンクが正常に取得できない問題を改善:追加
Browse files Browse the repository at this point in the history
  • Loading branch information
ryuring committed Feb 24, 2024
1 parent f171ceb commit 10c51be
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugins/baser-core/src/View/Helper/BcBaserHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,8 @@ public function getLink($title, $url = null, $options = [], $confirmMessage = fa
$url = $this->getUrl($srcUrl, $full, ['escape' => false]);
} else {
$site = $this->getCurrentSite();
$url = $this->BcContents->getUrl($srcUrl, $full, $site->use_subdomain, (bool) $request->getAttribute('base'));
$useSubdomain = ($site)? $site->use_subdomain : false;
$url = $this->BcContents->getUrl($srcUrl, $full, $useSubdomain, (bool) $request->getAttribute('base'));
}

if (!$full) {
Expand Down

0 comments on commit 10c51be

Please sign in to comment.