cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with Alfresco changing URLs in html hrefs

stk137
Champ in-the-making
Champ in-the-making
How do I disable the url rewriting that happens when saving an HTML file that is edited in Alfresco?

When editing html in Alfresco it changes the links after saving the document to something invalid.

For example an html file with an href of
http://localhost:8080/alfresco/n/browse/workspace/SpacesStore/5f8ee3fa-790c-11db-ac41-31b426e587bd
after saving it becomess
../../../n/browse/workspace/SpacesStore/5f8ee3fa-790c-11db-ac41-31b426e587bd

This link is invalid, even if viewing the html file in Alfresco. It turns into
http://localhost:8080/alfresco/d/d/n/browse/workspace/SpacesStore/5f8ee3fa-790c-11db-ac41-31b426e587...
which gets
… Node does not exist: n://browse/workspace ..

When viewed outside of Alfresco, it of course doesn't work.

Where is the URL rewriting occuring?  How can it be disabled?
And if I did want working relative URLs, where could I fix that?

These changes don't occur until the file is saved and it doesn't happen when editing the file outside of Alfresco.

I am using 2.1RC1.  I am not using WCM, just editing HTML files in the basic Alfresco.

thanks
2 REPLIES 2

gavinc
Champ in-the-making
Champ in-the-making
I think this could be an issue with the TinyMCE editor, something like this has been seen before and I thought had been fixed.

Feel free to raise this is an issue in JIRA so you can track the progress.

stk137
Champ in-the-making
Champ in-the-making
I think this could be an issue with the TinyMCE editor, something like this has been seen before and I thought had been fixed.

Feel free to raise this is an issue in JIRA so you can track the progress.

OK here's a JIRA item
http://issues.alfresco.com/browse/AWC-1459

I am just guessing, but it sort of seems like something Alfresco may have added to enhance/fix TinyMCE that is generating these changed URLs.  It's correct while viewing/editing the HTML until you save.  I didn't see anything in the TinyMCE configuration to change the URLs to relative URLs, but maybe I am looking in the wrong place.  Otherwise, I would assume these should stay as the absolute URLs.

FWIW I am using Firefox 2 on Linux.