etc/map on author instance, only for wcmmode disabled | Community
Skip to main content
Level 2
Jan 9, 2018 12:33 PM UTC
Solved

etc/map on author instance, only for wcmmode disabled

Hi,

Currently we have a "/etc/map/https" configuration on our publish environment (author & publish are hosted on 2 different servers).

This is because all the urls on the publish environment need to be user friendly. we don't want to publish urls containing "/content/en_us/path/index.html", but we want "en_us/index.html". This is working fine on the publish environment.

But now we have integrated Adobe Campaign in AEM and Campaign is connected to the Author instance (like the documentation has described Integrating with Adobe Campaign 6.1) It doesn't connect to the publish environment but author.

The problem now is that all the urls also need to be transformed to a "en_us/index.html" like URL. when campaign fetches the content from author.

We can set the same etc/map configuration on the author instance. this will solve the problem, but it also creates another one.

When setting up the '/etc/map' configuration on author, all the urls in edit, preview, design mode will rewrite the urls to the publish instance. ( the etc/map configuration contains the publish domain) and this is something we don't want.

When authoring (editing, setting pages up) we want to direct to page in the author instance itself, we don't want to redirect to the publish instance. for authoring/testing purposes on the author instance.

Is it possible to only execute the etc/map configuration in wcmmode disabled or something?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
bertc43227855Accepted solution
Level 2
Jan 16, 2018 2:47 PM UTC

Talked with adobe consultant, and it is not the usecase to setup /etc/map configuration on an author instance.

The issue should be resolved by setting up a proxy server, that listens on example: www.externalDomain.com/content/consumer_elec/b2c/europe/nl_be/index.html  and setup a rewrite on that URL to www.externalDomain.com/nl_be/index.html.

So the customer will not see the absolute URL directly.

3 replies

bertc43227855AuthorAccepted solution
Level 2
Jan 16, 2018 2:47 PM UTC

Talked with adobe consultant, and it is not the usecase to setup /etc/map configuration on an author instance.

The issue should be resolved by setting up a proxy server, that listens on example: www.externalDomain.com/content/consumer_elec/b2c/europe/nl_be/index.html  and setup a rewrite on that URL to www.externalDomain.com/nl_be/index.html.

So the customer will not see the absolute URL directly.

Translate
Level 2
Jan 11, 2018 8:19 AM UTC

Hi,

It is indeed referring to the publish instance (public domain).

But this is needed if Adobe campaign will fetch the final content from the author instance. the author instance is not public available, only the publish is. That's why the content is rewriting all the URLS to the publish (public) instance.

Or can the jcr resource resolver mapping have a condition to only be applied on wcmmode disabled?

Or do we need to connect the Adobe campaign server to the publish instance? But the documentation doesn't describe this.

Translate
Level 2
Jan 10, 2018 6:37 PM UTC

Can you check jcr resource resolver mapping for your index page e.g. /content/en_us/path/index.html in felix console, If it is giving you the publish url then i think for author you need to create  new sling mapping with its domain name.

Translate