Highlighted

Vanity Urls for DAM assets

Avatar

Avatar

dorianhallward

Avatar

dorianhallward

dorianhallward

05-11-2019

Hi is there an equivalent vanity urls feature for DAM assets?

Are there other authoring-friendly ways to achieve something similar (with minimal developer involvement (e.g. sling internal mappings))?

For example we'd like to have a vanity URL for a terms-and-conditions document hosted in the DAM.  The vanity url would map to somewhere like /content/dam/weretail/docs/legal/terms-and-conditions-2019.pdf

Replies

Highlighted

Avatar

Avatar

Ankur_Khare

MVP

Avatar

Ankur_Khare

MVP

Ankur_Khare
MVP

05-11-2019

Could u pls use sling resource resolver configuration to achieve this

Resource Mapping

Highlighted

Avatar

Avatar

dorianhallward

Avatar

dorianhallward

dorianhallward

05-11-2019

Thank you for the suggestion ka786​.  I wondered about sling internal mappings but I'm not sure I would describe that as "authoring-friendly"(?)

Highlighted

Avatar

Avatar

jbrar

Employee

Avatar

jbrar

Employee

jbrar
Employee

07-11-2019

Sling Mapping Or Redirects at apache level are the only options. In this case, authors have to assume that "/content/dam" will be replaced by "/" when the page/asset will be loaded on the publish instance Or live site.

NOTE: Do not use sling mappings on author instance as it is only recommended to be used on Publish.

Highlighted

Avatar

Avatar

dorianhallward

Avatar

dorianhallward

dorianhallward

07-11-2019

Thanks JaideepBrar​ for the suggestion. 

Given a vanity url example of '/annual-reports', how would you configure apache so that it knows whether it should redirect to page request in the CMS under /content/wherever or to an asset in the CMS under content/dam/wherever?  And in the case of assets what request extension would you add to the request for the resolver process to act on?

Neither apache redirects nor sling mappings are author-friendly.  I'm looking for a solution where, for example, an author can set a vanity URL themselves against an asset (as they can for a page), perhaps using the assets editor.   We want to avoid a process that needs sysdmin/ developer involvement each time a new vanity url is added.

Highlighted

Avatar

Avatar

dorianhallward

Avatar

dorianhallward

dorianhallward

07-11-2019

smacdonald2008​ hi do you know if there is any Adobe official support / features/ plugins or advice on vanity urls for DAM assets? thanks