public interface CanonicalTagging
Service for looking for the canonical page.
OSGi Implementation is to be configured. Rule has next syntax:Examples:
for rule /content/mysite/categoty[0-9]>/content/mysite/maincategory
configured publish domain https://doma.in
and resource path /content/mysite/categoty4/page-with-canonical/component
canonical path will be https://doma.in/content/mysite/maincategory/page-with-canonical
for strict rule /content/mysite/specific/page-with-canonical=>/content/mysite/canonical-specific/page-with-canonical
and resource path /content/mysite/specific/page-with-canonical
configured publish domain https://doma.in
canonical path will be https://doma.in/content/mysite/canonical-specific/page-with-canonical
| Modifier and Type | Method and Description |
|---|---|
String |
getCanonicalLink(String resourcePath)
Method, which returns canonical link for the given resource path.
|
String getCanonicalLink(String resourcePath)
Method, which returns canonical link for the given resource path.
Internally, page will be extracted for the provided resource path. Using rules canonical path will be tried to found.
Using Externalizer, path will be converted to the link.
resourcePath - which will be used to get page it is part ofCopyright © 2017. All rights reserved.