docusaurus-plugin-typedoc-api
docusaurus-plugin-typedoc-api copied to clipboard
Link to latest stable version is broken when there is only one package
When browsing non-latest version, we have this box with a link to the latest version, but its not working for a single package sites apparently, as it points to the /api route and not to the first package.
https://sdk.apify.com/api/next/apify
Might be good to make this warning box more in line with the one docusaurus uses, it looks like this nowadays:
@B4nan Does the /api link not redirect to the first package automatically though?
Nope, not even after I refresh the page. You can try it yourself on the link above, the broken version is deployed currently (as we have only one package we want to document currently).
I noticed it redirects to the URL with trailing slash (while we have them disabled, so other URLs behave in the other way, removing extra trailing slashes automatically).
https://sdk.apify.com/api, same with https://sdk.apify.com/api/next
Alrighty.
I'll find some time and just rework the url handling. It's become a bit of a mess.