Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
B4nan opened this issue Aug 21, 2022 · 3 comments
Open

Comments

@B4nan
Copy link
Contributor

B4nan commented Aug 21, 2022

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

@milesj
Copy link
Owner

milesj commented Aug 21, 2022

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

@B4nan
Copy link
Contributor Author

B4nan commented Aug 21, 2022

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

@milesj
Copy link
Owner

milesj commented Aug 21, 2022

Alrighty.

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

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

No branches or pull requests

2 participants