You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
currently, all the doc links point to urls without trailing slash. the reason is this now closed issue: #569 with that fixed, urls with trailing slash now work.
the algolia search results actually point to the versions with trailing slash.
when clicking on a result, the sidebar anchor links will reload the whole page because they point to the slashless version (and sometimes they might not work, not sure when exactly).
also, the algolia crawler seems to first hit the slashless urls and then the redirect, which is why the crawler ignores many urls, polluting the output.
the slashless urls only work because, for directories, github pages redirects from URLs without trailing slash to the same URL with trailing slash as mentioned here: vite-pwa/astro#23 (comment) (although the service worker intercepts these redirects and serves the cached response somehow) + astro builds each page into its own directory by default (https://docs.astro.build/de/reference/configuration-reference/#buildformat defaults to 'directory')
TLDR; just refactor the links to trailing slashes to get a cleaner algolia crawl + less flashing when clicking around the docs
The text was updated successfully, but these errors were encountered:
currently, all the doc links point to urls without trailing slash. the reason is this now closed issue: #569 with that fixed, urls with trailing slash now work.
the algolia search results actually point to the versions with trailing slash.
when clicking on a result, the sidebar anchor links will reload the whole page because they point to the slashless version (and sometimes they might not work, not sure when exactly).
also, the algolia crawler seems to first hit the slashless urls and then the redirect, which is why the crawler ignores many urls, polluting the output.
the slashless urls only work because, for directories, github pages redirects from URLs without trailing slash to the same URL with trailing slash as mentioned here: vite-pwa/astro#23 (comment) (although the service worker intercepts these redirects and serves the cached response somehow) + astro builds each page into its own directory by default (https://docs.astro.build/de/reference/configuration-reference/#buildformat defaults to 'directory')
TLDR; just refactor the links to trailing slashes to get a cleaner algolia crawl + less flashing when clicking around the docs
The text was updated successfully, but these errors were encountered: