基本设置里面的站点地址建议做成自动获取
Open
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 12.4k
- Forks
- 2.1k
- PR merge metrics
- No merged PRs in 30d
Description
1. 该问题的重现步骤是什么?
两个域名地址:example.com 和 www.example.com
如果域名解析以及web服务器不做访问根域名时跳转的话 经常出现混用冲突
2. 你期待的结果是什么?实际看到的又是什么?
如同z-blog里面的网站地址设置提供了一个 ”固定网站域名“ 的功能:默认自动读取当前网址,如需固定网站域名请点击按钮并输入域名。
3. 问题出现的环境
- 操作系统版本:
- Apache/NGINX 版本:
- 数据库版本:
- PHP 版本:
- Typecho 版本:
- 浏览器版本:
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading the issue's expected behavior and locating the implementation of the basic settings page and its site-address field. Check how the current URL and configured domain are stored and used, then define completion as reliably defaulting to the current URL while allowing an explicit fixed domain for setups using example.com and www.example.com.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- backend
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100