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

Broken Link in Open to repository when Alfresco is not installed in English #94

Open
CesarCapillas opened this issue Jul 20, 2016 · 2 comments

Comments

@CesarCapillas
Copy link

Hi:

First of all, congrats for the module. It is a very nice and useful addon.

I am using the module in a spanish installation. When initial language settings (operating system locale or java user.locale and user.region) are not set to english, Alfresco directory structure of the repository is created in other language (i.e. Spanish) and some important rootpaths like:

Company Home

change to --> Espacio de empresa

(in spanish for example)

When showing Upload Folders paths in Alfresco Share admin console, there is an option to open the Upload Folder in the Repository. In my case, I see the path wrong splitted and as a result of this, a broken link to the folder too.

Looking deeper in the code, I can see in the surf part:

components/uploader-plus/js/uploader-plus-admin.js

that there is a function to prettyPath that substrings such as:

var result = path.substring(13);

In my case, changing this by a "18" (according to the length of "Espacio de empresa") solves my problem as a walkaround. I understand, that a better solution would be to split the path by "/" and then to ignore the first element of the rootpath.

Regards.

--C.

@douglascrp
Copy link
Collaborator

@CesarCapillas Hey.
I'm able to replicate the same behaviour when using Brazilian Portuguese.
I'll try to work on this ASAP.
I just have to finish some work here.

Thank you for reporting it

@Printerone
Copy link

Hey everyone, i got the sam issue, any news about?

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

No branches or pull requests

3 participants