Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/dev-5' into dev-5
Browse files Browse the repository at this point in the history
  • Loading branch information
ryuring committed Mar 6, 2024
2 parents ef7a630 + 32cfe23 commit 8f8880f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion plugins/baser-core/src/Controller/AppController.php
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,9 @@ public function beforeFilter(EventInterface $event)
}
// リファラが存在する場合はリファラにリダイレクトする
// $this->referer() で判定した場合、リファラがなくてもトップのURLが返却されるため ServerRequest で判定
if ($this->getRequest()->getEnv('HTTP_REFERER')) {
if ($this->getRequest()->getEnv('HTTP_REFERER') &&
$this->getRequest()->getAttribute('here') !== $this->referer()
) {
$url = $this->referer();
} else {
$url = Configure::read("BcPrefixAuth.{$prefix}.loginRedirect");
Expand Down

0 comments on commit 8f8880f

Please sign in to comment.