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

[fix] Sorting breaks subdir downloading #991

Merged
merged 1 commit into from Feb 21, 2023
Merged

[fix] Sorting breaks subdir downloading #991

merged 1 commit into from Feb 21, 2023

Conversation

Vam-Jam
Copy link
Contributor

@Vam-Jam Vam-Jam commented Dec 6, 2022

Adds a small check in render.rs make_link_with_trailing_slash to do nothing if link is empty, instead of adding a slash where its not needed.

It looks like nothing calls make_link_with_trailing_slash with an empty string aside from downloading when sorting, so this should not break anything else.

You can test the fix out here if needed: https://archive.vamist.dev/

Another alternative fix is to just not include sorting options when downloading, so if you would rather this, let me know.

Fixes #967

- Small check in render.rs make_link_with_trailing_slash to return nothing if link is empty, instead of adding a /
@svenstaro svenstaro merged commit 8dc14ed into svenstaro:master Feb 21, 2023
@svenstaro
Copy link
Owner

Thanks! Fix is fine as is.

@Vam-Jam
Copy link
Contributor Author

Vam-Jam commented Feb 21, 2023

Awesome, thank you for making this awesome project!

@Vam-Jam Vam-Jam deleted the sort_down_fix branch February 21, 2023 12:43
@svenstaro
Copy link
Owner

Happy you like it. :)

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

Successfully merging this pull request may close these issues.

Sorting by any means breaks subdir downloads
2 participants