* @return return portal url template
* @throws java.io.UnsupportedEncodingException
*/
public String getPortalURLTemplate() throws UnsupportedEncodingException {
StandaloneAppRequestContext context = WebuiRequestContext.getCurrentInstance();
ComponentURL urlTemplate = context.createURL(ComponentURL.TYPE);
if (URLWriter.isUrlEncoded()) {
urlTemplate.setMimeType(MimeType.XHTML);
} else {
urlTemplate.setMimeType(MimeType.PLAIN);
}
urlTemplate.setPath(context.getNodePath());
urlTemplate.setResource(EMPTY_COMPONENT);
urlTemplate.setAction("{portal:action}");
return URLDecoder.decode(urlTemplate.toString(), "UTF-8");
}