We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
コンテンツとしてブログコンテンツが /news/ で存在する場合として、 サブサイトとして、スマートフォン用サイトをエイリアスを /s/ で作成しているとする。 サブサイト設定内の「デバイス・言語」項目内「メインサイトから自動的にリダイレクト」を有効化しているとき、とする
スマホで /news/archives/1 にアクセスすると、/s/ 側にリダイレクトしない。 期待するのは、/news/archives/1 にスマホでアクセス時、/s/news/archives/1 に遷移すること。
baserCMS version : 4.2.2
/lib/Baser/Lib/BcSite.php::shouldRedirects() 内の existsUrl() による判定時、コンテンツの存在チェックを行っているが、ブログ記事の場合、コンテンツのURLではなく、存在判定のURLとして「/news/archives/1」($this->here)が利用されているため、コンテンツが存在しない=リダイレクトしない、となっている
The text was updated successfully, but these errors were encountered:
@materializing 余力ありましたら調査お願いしますー
Sorry, something went wrong.
WIP baserproject#1237 ブログ記事詳細のURLにスマホでアクセスした場合に、スマホ用URLにリダイレクトされないため
b6e854c
baserproject#1237
ブログ記事詳細画面で、オートリダイレクトが効かない baserproject#1237
910ece7
@materializing こちらのコミットで解決しました。 e8fe36d 10399e0
fuchigam1
No branches or pull requests
概要
コンテンツとしてブログコンテンツが /news/ で存在する場合として、
サブサイトとして、スマートフォン用サイトをエイリアスを /s/ で作成しているとする。
サブサイト設定内の「デバイス・言語」項目内「メインサイトから自動的にリダイレクト」を有効化しているとき、とする
スマホで /news/archives/1 にアクセスすると、/s/ 側にリダイレクトしない。
期待するのは、/news/archives/1 にスマホでアクセス時、/s/news/archives/1 に遷移すること。
baserCMS version : 4.2.2
想定される原因のところ
/lib/Baser/Lib/BcSite.php::shouldRedirects() 内の existsUrl() による判定時、コンテンツの存在チェックを行っているが、ブログ記事の場合、コンテンツのURLではなく、存在判定のURLとして「/news/archives/1」($this->here)が利用されているため、コンテンツが存在しない=リダイレクトしない、となっている
The text was updated successfully, but these errors were encountered: