Skip to content

Keep external links to /index.html intact by disabling Netlify's Pretty URLs - #710

Merged
kenhys merged 1 commit into
fluent:1.0from
Watson1978:disable-netlify-pretty-urls
Oct 8, 2026
Merged

kenhys merged 1 commit into
fluent:1.0from
Watson1978:disable-netlify-pretty-urls

Conversation

@Watson1978

@Watson1978 Watson1978 commented Oct 8, 2026 •

Copy link
Copy Markdown
Contributor

On docs.fluentd.org, links whose path is /index.html lose index.html even when they point to other hosts. The calyptia-fluentd package browser link (https://calyptia-fluentd.s3.us-east-2.amazonaws.com/index.html?prefix=1/windows/) opens an XML listing instead, and https://fluentd.cdn.cncf.io/index.html becomes https://fluentd.cdn.cncf.io/. The local HonKit build keeps these links as written, so the rewrite comes from Netlify's Pretty URLs post processing.

This sets pretty_urls = false in netlify.toml (Netlify docs). The deploy preview keeps both links as written. Internal links now point to the .html pages that HonKit generates, and the extensionless URLs still work.

🤖 Generated with Claude Code

On docs.fluentd.org, links whose path is /index.html lose index.html
even when they point to other hosts. The calyptia-fluentd package
browser link opens an XML listing instead, and
https://fluentd.cdn.cncf.io/index.html becomes
https://fluentd.cdn.cncf.io/. The local HonKit build keeps the links
as written, so this looks like Netlify's Pretty URLs post processing.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Shizuo Fujita <fujita@clear-code.com>
@netlify

netlify Bot commented Oct 8, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for fluentd-docs ready!

Name Link
🔨 Latest commit 66b222a
🔍 Latest deploy log https://app.netlify.com/projects/fluentd-docs/deploys/6ac73ee7e6e372000822738c
😎 Deploy Preview https://deploy-preview-710--fluentd-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@kenhys
kenhys merged commit 660fcbb into fluent:1.0 Oct 8, 2026
6 checks passed
@Watson1978
Watson1978 deleted the disable-netlify-pretty-urls branch October 8, 2026 07:14
kenhys pushed a commit to fluent/fluentd-website that referenced this pull request Oct 8, 2026
…Netlify's Pretty URLs (#521)

On www.fluentd.org, links whose path is `/index.html` lose `index.html`
even when they point to other hosts. The calyptia-fluentd package
browser links on /download/calyptia_fluentd
(`https://calyptia-fluentd.s3.us-east-2.amazonaws.com/index.html?prefix=1`)
become `/?prefix=1` and open an XML listing instead. The source in
`source/download/calyptia_fluentd.html.erb` is correct, so the rewrite
comes from Netlify's Pretty URLs post processing.

This sets `pretty_urls = false` in `netlify.toml` ([Netlify
docs](https://docs.netlify.com/build/configure-builds/file-based-configuration/#pretty-urls)).
The same setting stopped the rewrite on the deploy preview of
fluent/fluentd-docs-gitbook#710. The site already uses
`directory_indexes`, so other links should not change.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Signed-off-by: Shizuo Fujita <fujita@clear-code.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
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