Skip to content
New issue

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

【システム】システム基本設定でWebサイトURLを不用意に変更すると管理画面にアクセスできなくなる #3577

Open
seto1 opened this issue Jul 3, 2024 · 3 comments
Assignees
Labels
Adjusting 調整中

Comments

@seto1
Copy link
Collaborator

seto1 commented Jul 3, 2024

baserCMS version : 5

原因は以下の部分でURLのリダイレクトを行っているため
https://github.com/baserproject/basercms/blob/5.1.x/plugins/baser-core/src/Controller/Admin/BcAdminAppController.php#L193

修正するには.envを変更する必要がある

対応案

A

  • システム基本設定からURL設定項目を外す

B

C

  • 管理画面のURLのリダイレクトをcmsUrlが設定されている場合のみ行うようにする
@seto1
Copy link
Collaborator Author

seto1 commented Jul 3, 2024

Cでいい気がする

@kk-uchino kk-uchino added the Todo 実行確定タスク label Jul 5, 2024
@ryuring
Copy link
Collaborator

ryuring commented Jul 5, 2024

メモ:siteUrlとsslUrlの役割
元々、過去にお問い合わせフォームだけをSSL化するという仕様が求められたため、フルパスを取得する必要があった。
現在は、混在することはなくなったため、フルパスの必要性は薄くなっている可能性が高く、スラッシュからのルートパスだけもよいかも

@ryuring ryuring added Adjusting 調整中 and removed Todo 実行確定タスク labels Jul 5, 2024
@seto1
Copy link
Collaborator Author

seto1 commented Jul 8, 2024

現在は、混在することはなくなったため、フルパスの必要性は薄くなっている可能性が高く、スラッシュからのルートパスだけもよいかも

困るとしたらコンソールから送信するメール内でサイトのURLを使いたいとき、くらいかもですね。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Adjusting 調整中
Projects
None yet
Development

No branches or pull requests

3 participants