docusaurus-plugin-typedoc-api icon indicating copy to clipboard operation
docusaurus-plugin-typedoc-api copied to clipboard

Link to latest stable version is broken when there is only one package

Open B4nan opened this issue 3 years ago • 3 comments

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

image

Might be good to make this warning box more in line with the one docusaurus uses, it looks like this nowadays:

image

B4nan avatar Aug 21 '22 09:08 B4nan

@B4nan Does the /api link not redirect to the first package automatically though?

milesj avatar Aug 21 '22 16:08 milesj

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

B4nan avatar Aug 21 '22 16:08 B4nan

Alrighty.

I'll find some time and just rework the url handling. It's become a bit of a mess.

milesj avatar Aug 21 '22 21:08 milesj