Expand my Community achievements bar.

SOLVED

How to get hardcoded Component links to conform to MSM on rollout?

Avatar

Level 3

I haven't found a good solution for this and hope someone else has come across this.

I have a navigation component (HTL) where all the links in the component live in the component HTML. Is there a way to get these links to automatically update to their language copy path on rollout?

i.e.

Hardcoded link: /content/site/language-masters/en/products.html

Want link to update to: /content/site/us/en/products.html after rollout.

Any ideas?

1 Accepted Solution

Avatar

Correct answer by
Level 2

Not really; When a page that references the HTL component is rolled out, nothing happens to the actual component template. It exists in a single instance.

You can write a custom Sling Rewriter to do that on page render time.

View solution in original post

2 Replies

Avatar

Administrator

Moving this question to AEM topic!!



Kautuk Sahni

Avatar

Correct answer by
Level 2

Not really; When a page that references the HTL component is rolled out, nothing happens to the actual component template. It exists in a single instance.

You can write a custom Sling Rewriter to do that on page render time.