Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion include/header.inc
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ if (!isset($config["languages"])) {
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">

<base href="https://www.php.net">
<base href="https://www.php.net/<?php echo $_SERVER['BASE_PAGE'] ?? '' ?>">

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.

LGTM. But I think the old way was better. Now, when I click on it during the preview test, it redirects to php.net.

Suggested change
<base href="https://www.php.net/<?php echo $_SERVER['BASE_PAGE'] ?? '' ?>">
<?php if (!empty($_SERVER["BASE_HREF"])): ?>
<base href="<?php echo $_SERVER["BASE_HREF"]; ?>">
<?php endif ?>

@KentarouTakeda KentarouTakeda Jun 11, 2026

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Thanks for the review! That's a side effect of pinning the host, and it's intentional: the suggested code derives the href from SERVER_NAME — that's how new.www.internal.php.net ended up in the <base> and broke asset loading (#1917). This PR restores only the path part, using the same pattern as the canonical link below.

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.

@KentarouTakeda Not quite — I hadn't set the original host to be fed through to the CDN. The commit that I made yesterday can be reverted. I will now do that (and hence, I can close this PR too).


<title><?php echo $title ?></title>

Expand Down
Loading