aemsites / stericycle-shared

Edge Delivery Service Site for Stericycle sites
https://www.shredit.com, https://www.stericycle.com
Apache License 2.0
0 stars 0 forks source link

Site Wide - URL Mapping #149

Open colinvlasak opened 1 week ago

colinvlasak commented 1 week ago

We recently noticed an issue with the url mapping. It appears that not all urls are the same on the EDS site as the live site. The example below shows the difference. The live url has "--" between awareness and why while the EDS url does not. If the URLs are different from the live site this will result in 404s and potentially broken links.

https://main--shredit--stericycle.aem.live/en-us/resource-center/videos/fraud-prevention-and-awareness-why-it-matters https://www.shredit.com/en-us/resource-center/videos/fraud-prevention-and-awareness--why-it-matters

Can we ensure that all urls are mapped to match our live site? I presume the discrepancy may be that EDS uses the document title for urls while our live site has the url configured as a custom parameter that may slightly vary from the title (some urls have double "-" or have words removed like "and".

I'm not sure how broad spread this issue may be but I assume there are a lot of pages that will have the same minor differences. We want to ensure the mapping is clean for launch so we do not run into any issues.

colinvlasak commented 1 week ago

cc: @rwcsrichardspencer

dkuntze commented 1 week ago

the problem here is that -- is a url delimiter on aem.live, so it rewrites them to single dashes. We can handle with redirects on those pages.

colinvlasak commented 1 week ago

@dkuntze thanks for the quick reply. Can we ensure there is a process in place to review the url discrepancies and ensure the redirects are properly configured for any urls that are changing?

dkuntze commented 1 week ago

yeah, I've been flagging them in the page status when I find them