Skip to content

Platform switch should attempt to preserve current module #24

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

Closed
nagisa opened this issue Aug 26, 2016 · 0 comments · Fixed by #715
Closed

Platform switch should attempt to preserve current module #24

nagisa opened this issue Aug 26, 2016 · 0 comments · Fixed by #715

Comments

@nagisa
Copy link
Member

nagisa commented Aug 26, 2016

Being in some module and then attempting to switch to a different platform (try unknown-linux-gnu) throws you back to the root of documentation.

It would be nice if an attempt was made to not forget the module user is in when switching the platform.

A naive implementation strategy could be something along the lines of: Given an URI like https://docs.rs/{crate}/{version}/{platform}/{...path} try to load https://docs.rs/{crate}/{version}/{new-platform}/{...path} and if that fails, load the crate root documentation.

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 a pull request may close this issue.

2 participants