Skip to content

Commit

Permalink
fix baserproject#1404 URLのクエリがセッションに保存されない問題を解決
Browse files Browse the repository at this point in the history
  • Loading branch information
kato committed Mar 30, 2020
1 parent abae3b6 commit 74df4f2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/Baser/Lib/BcSite.php
Original file line number Diff line number Diff line change
Expand Up @@ -393,6 +393,9 @@ public function shouldRedirects(CakeRequest $request) {
*/
public function existsUrl(CakeRequest $request) {
$url = $this->makeUrl($request);
if (strpos($url, '?') !== false) {
$url = explode('?', $url)[0];
}
/* @var Content $Content */
$Content = ClassRegistry::init('Content');
if($Content->findByUrl($url, true, false, $this->sameMainUrl, $this->useSubDomain) ||
Expand Down

0 comments on commit 74df4f2

Please sign in to comment.