You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use the following server-side connector (check one):
ASP.NET Core connector by sinanbozkus
My familiarity with the project is as follows (check one):
I am an active contributor to the project.
When clicking the "Go to parent Folder" button, it takes me to the root folder. Could this be a bug with the ASP.Net Core connector or is this something the javascript side should check for?
Example:
If I'm in the current working folder "/d/subfolder1/", the parent button will take me to the root instead of "/d".
The root cause is because the model.currentPath() returns 'd/subfolder1', while the code looks for two slashes. Since there is only one, the return string will be empty with a added "/" to indicate the root folder.
this.navLevelUp = function() {
debugger;
var parentFolder = model.previewFile() ?
getDirname(model.previewModel.rdo().id) :
getParentDirname(model.currentPath() + '/'); <!--- the correct path is returned when adding a "/" -->
if (model.previewFile()) {
model.previewFile(false);
}
if (parentFolder !== model.currentPath()) {
model.itemsModel.loadDataList(parentFolder);
}
};
Thanks for your time.
The text was updated successfully, but these errors were encountered:
Oh, this is exactly what I was talking about, when mentioned that absence of leading slash in path may my be the cause of implicit issues. You would better to prepend paths with leading slashes in all responses of the connector to avoid such surprises. Is this a problem? Could this be a problem?
ShortBusKing
added a commit
to ShortBusKing/RichFilemanager
that referenced
this issue
May 4, 2018
I use the following server-side connector (check one):
My familiarity with the project is as follows (check one):
When clicking the "Go to parent Folder" button, it takes me to the root folder. Could this be a bug with the ASP.Net Core connector or is this something the javascript side should check for?
Example:
If I'm in the current working folder "/d/subfolder1/", the parent button will take me to the root instead of "/d".
The root cause is because the model.currentPath() returns 'd/subfolder1', while the code looks for two slashes. Since there is only one, the return string will be empty with a added "/" to indicate the root folder.
Thanks for your time.
The text was updated successfully, but these errors were encountered: