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
Opening archive breaks breadcrumbs #332
Comments
Thanks. Breadcrumbs are in dire need of some attention. I'll fix this up. |
Continuing conversation from #406 about fixing breadcrumbs path inside archive. Problem is probably here, as this function returns full path to archive as root path: Sunflower/sunflower/plugins/archive_support/zip_provider.py Lines 245 to 247 in 20072f7
Naive fix would be to change get_root_path result to |
Aaah, okay. That makes sense now. Basically what's happening is that "get_root_path" is hardcoded in breadcrumbs as |
So what would be the best way to get root path here? Could we use pathlib, as none of os.path functions seem to fit without additional string manipulation. |
Breadcrumbs should show full root path instead of hard coded |
After opening zip archive, navigating inside and going up to parent directory, leaves breadcrumbs in broken state: first item contains path to directory:
To fix it you have to go into child directory.
The text was updated successfully, but these errors were encountered: