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

[Bug] 域名是子路径时的登录问题 #146

Open
flashlab opened this issue Oct 20, 2023 · 4 comments
Open

[Bug] 域名是子路径时的登录问题 #146

flashlab opened this issue Oct 20, 2023 · 4 comments

Comments

@flashlab
Copy link

flashlab commented Oct 20, 2023

由于我把网站放在了web目录的子文件夹,比如image/,那么网站首页域名类似“https://domain.com/image”。
源码里“/admin/index.php”这种绝对路径的url写法,导致一些操作,比如登陆,会跳转到“https://domain.com/admin/index.php”而不是“https://domain.com/image/admin/index.php”。

@flashlab flashlab changed the title [Bug] 域名是子路径时的链接问题 [Bug] 域名是子路径时的登录问题 Oct 20, 2023
flashlab added a commit to flashlab/EasyImages2.0 that referenced this issue Oct 20, 2023
@Disappear9
Copy link

不光是登录,好几处也都是这样写死的,放二级目录就炸😂比如这种:

<a class="btn btn-mini btn-primary" href="/admin/manager.php?p=<?php echo date('Y/m/d'); ?> " target="_blank" data-toggle="tooltip" title="使用Tinyfilemanager管理文件"><i class="icon icon-folder-open"> 文件管理</i></a>

<a href="/admin/terms.php" target="_blank" data-toggle="tooltip" title="使用协议">DMCA</a>

@XD9527
Copy link

XD9527 commented Feb 17, 2024

測試了一下,在子路徑下問題不少,
我用windows安裝WAMP環境來測試,會在C:\底下創建空的目錄 \i\
這確實挺嚴重的,是否能優先改進呢?

@callce
Copy link

callce commented Mar 30, 2024

原来不是我一个人遇到这个问题,那我就放心了,我想着更改路径,登录还是不能正常跳转到主页

@iamckun
Copy link

iamckun commented Apr 27, 2024

有解吗

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

No branches or pull requests

5 participants