Expand my Community achievements bar.

Submissions are now open for the 2026 Adobe Experience Maker Awards.

EDS + Universal Editor (AEM as content source) — Correct way to implement hreflang (SSR vs sitemaps)

Avatar

Level 4

Hi Community,

 

We’re running a storefront on Edge Delivery Services (EDS) with AEM Universal Editor as the content source. I’d like guidance on the recommended EDS pattern for hreflang so that international targeting works reliably.

 

Context (simplified):

 

  • AEM provides content via Universal Editor.
  • EDS serves the site (no custom SSR layer today).
  • We can generate XML sitemaps on our side.
  • Today, hreflang would be easy to inject client-side, but I understand SSR or sitemaps are more reliable for search engines.

 

Questions (EDS/AEM implementation):

 

Preferred pattern in EDS: For hreflang, should we prioritize SSR <link rel="alternate" hreflang="…"> in <head>, <xhtml:link> alternates in sitemaps, or both?

 

How to do SSR in EDS: If SSR is recommended, what’s the supported way to ensure hreflang is present in the served HTML (view-source) within an EDS architecture that uses AEM as the content source?

 

Is there an edge/rewriter pattern (e.g., worker / HTML rewriting) that Adobe recommends for EDS to inject head tags deterministically?

 

Or is there a template-level approach in EDS that renders hreflang before delivery (not client-side JS)?

 

Sitemaps-only viability: If we implement sitemaps with <xhtml:link> alternates first (and later add reciprocity from the other locale), is this considered sufficient in EDS? Any caveats we should be aware of?

 

Single source of truth for alternates: Where do you recommend keeping the locale-to-locale URL mapping so both head (if SSR is used) and sitemaps read from the same data (e.g., config file in the EDS repo vs. metadata in AEM content)?

 

Validation in EDS: Any recommended tools or workflows to validate hreflang in an EDS deployment (beyond URL Inspection), especially to confirm that SSR head tags are actually present in the served HTML?

 

If you have docs or a sample project demonstrating the recommended hreflang implementation in EDS + Universal Editor, that would be ideal. Thanks!

 

Example URL (for illustration only):
https://shop.example.mx/p/product-slug-123 (example domain; not a real project)

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

0 Replies