/** * Returns the canonical URL for the page. The canonical URL is often used * to distinguish a preferred page from its translations. * * <p> * A canonical URL for the page is the preferred URL to specify for a set of * pages with similar or identical content. The canonical URL is used to * inform search engines that several URLs point to the same page. It is * also used to generate the URLs for site maps, the URLs that social * bookmarks publish (Twitter, Facebook links, etc.), and the URLs in sent * email. For more information, see <a * href="https://support.google.com/webmasters/answer/139394?hl=en">https://support.google.com/webmasters/answer/139394?hl=en</a>. * </p> * * @param completeURL the complete URL of the page * @param themeDisplay the theme display * @param layout the page being requested (optionally <code>null</code>). * If <code>null</code> is specified, the current page is used. * @return the canonical URL for the page * @throws PortalException if a portal exception occurred */ public static String getCanonicalURL( String completeURL, ThemeDisplay themeDisplay, Layout layout) throws PortalException { return getPortal().getCanonicalURL(completeURL, themeDisplay, layout); }
throws PortalException { return getPortal().getCanonicalURL( completeURL, themeDisplay, layout, forceLayoutFriendlyURL, includeQueryString);
throws PortalException { return getPortal().getCanonicalURL( completeURL, themeDisplay, layout, forceLayoutFriendlyURL);
sb.append(journalArticle.getUrlTitle()); String articleURL = _portal.getCanonicalURL( sb.toString(), themeDisplay, layout);