Trailing slashes
Choose whether paths end in a slash, so relative links always resolve.
bunny.net serves guides/index.html at both /guides and /guides/. At /guides, relative links such as ./intro.html resolve to /intro.html and break. Set trailingSlash in orbitpush.json to pick one form. It also gives each page one URL, so search engines don’t index both:
"trailingSlash": "always"
always (default)
A path whose last segment has no file extension, such as /guides, redirects with 301 to /guides/.
- Only HTML responses redirect, so files without an extension, such as
.well-known/apple-app-site-association, are served as they are. - Like Netlify’s Pretty URLs, except that
/about.htmlis not served at/about/: a storage zone can’t serve another path. - A missing path such as
/noperedirects to/nope/and then gets the 404.
never
/guides/ redirects with 301 to /guides, except when the URL has a query string.
ignore
No redirect. This is the default in SPA mode, where client routes such as /projects have no directory. Both forms then serve the page, so set a <link rel="canonical"> if search engines should index only one.
Details
The redirect drops the query string, like a redirect with a fixed target in redirects. It is an edge rule that orbitpush manages, and the entries in redirects run first.
Match the setting to your framework’s output: a site that builds about/index.html and links to /about/ wants always.