Incomplete Url from sample/folder Web Script
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-27-2007 07:15 PM
Hi! I'm using the "sample/folder" Web Script from Alfresco in a portlet that I developed.
The problem is that in the URLs that I get from the sample/folder script there isn't the host part.
In the Html that I obtain I have this kind of URL:
<a href="/alfresco/service/api/node/content/workspace/SpacesSto
re/68083263-9a9e-11dc-b892-dd9d7b17536a/Studio5Riba.pdf">Studio5Riba.pdf</a>
Why the host part (for example "http://www.somehost.com:8080" before "/alfresco/service/…") is missing?
Thank you for your support!
Ivano Carrara
The problem is that in the URLs that I get from the sample/folder script there isn't the host part.
In the Html that I obtain I have this kind of URL:
<a href="/alfresco/service/api/node/content/workspace/SpacesSto
re/68083263-9a9e-11dc-b892-dd9d7b17536a/Studio5Riba.pdf">Studio5Riba.pdf</a>
Why the host part (for example "http://www.somehost.com:8080" before "/alfresco/service/…") is missing?
Thank you for your support!
Ivano Carrara
Labels:
- Labels:
-
Archive
2 REPLIES 2

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-28-2007 05:52 AM
The Web Script url object always renders a url without the host.
If you want a full absolute url you can use the freemarker method 'absurl'. This will add the host part to the passed url.
e.g. ${absurl(url.service)}
If you want a full absolute url you can use the freemarker method 'absurl'. This will add the host part to the passed url.
e.g. ${absurl(url.service)}
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-28-2007 11:23 AM
Hi David and thank you for your reply!
I was returning here to write that in the meantime I understood the solution viewing the atom version of the folder script….
Thank you again!
Ivano Carrara
I was returning here to write that in the meantime I understood the solution viewing the atom version of the folder script….
Thank you again!
Ivano Carrara
