Skip to content

Canonicalises feed base URL handling - #41

Open
NickSdot wants to merge 1 commit into
php:masterfrom
NickSdot:feed-base-url
Open

Canonicalises feed base URL handling#41
NickSdot wants to merge 1 commit into
php:masterfrom
NickSdot:feed-base-url

Conversation

@NickSdot

@NickSdot NickSdot commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

Private fork follow up. Uses the configured base URL for RSS/RDF links instead of the request host header.

@NickSdot NickSdot mentioned this pull request Aug 7, 2026
Comment thread lib/config.php
$NNTP_HOST = getenv('NNTP_HOST');
}

$NEWS_WEB_BASE_URL = 'https://news.php.net';

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
$NEWS_WEB_BASE_URL = 'https://news.php.net';
$NEWS_WEB_BASE_URL = 'https://news-web.php.net';

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, @jimwins! Your suggestion is technically correct. However, current master for whatever reason references news.php.net -- which would be fine for local, but it does in fact not reflect remote reality.

https://github.com/search?q=repo%3Aphp%2Fweb-news+news.php.net&type=code

Are we fine making it part of this PR's scope to unify it to news-web.php.net?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

news.php.net actually works, but redirects to news-web.php.net so requests get routed through the CDN. I wish we could figure out how to have the web interface live at lists.php.net, but I guess that has proven difficult for DNS/CDN reasons, so we may as well be consistent in using news-web.

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

Successfully merging this pull request may close these issues.

2 participants