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
Breadcrumbs behaving badly #10
Comments
|
Hi Mark, |
|
I have debugged it and found the place where the link is not being build right. On the navigator. In the BreadCrums the building is done by taking the Parents array and in each Parent the ChildrenLocation is build without the leading "/" I wonder... I can apply a fix to the client.... but do you think this should be done in the server? There is inconsistency with the ChildrenLocation property. Should the parent array items should include the ChildrenLocation with the leading "/" to indicate this is a directory (as you mentioned that is what should be expected) but then I guess there would be other places in the code to fix too. |
|
Hi, Kobrigo: By the way, do you have a bugzilla id? So that I can cc you on the bug. |
The last segment is always listed twice. If you drill deeper into further folders, it'll look like this:
The problem is probably due a flaw in Orionode's algorithm for generating the Parents array of the file API. Likely culprits are
file.jsandfileUtils.js.Also I noticed that the problem is triggered by requesting a directory resource with a trailing slash after it. For example,
GET /file/MyProject/?depth=1has the bad Parents array, butGET /file/MyProject?depth=1behaves as expected. When Orionode generates a directory listing it always uses the trailing slash to indicate a directory (as expected), so you see this problem all the time.The text was updated successfully, but these errors were encountered: