fix: redirect oversight explorer to OpTel oversight#1070
Merged
Conversation
Redirects users landing on /tools/rum/explorer.html to tools.aem.live/tools/optel/explorer/explorer.html, preserving query params. Only applies on www.aem.live hostname. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
On *.aem.page and *.aem.live, redirect to the corresponding helix-tools-website environment instead of tools.aem.live. This enables pre-merge testing of the redirect. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Move redirect from tools/rum/explorer.html to tools/oversight/explorer.html, targeting /tools/optel/oversight/explorer.html on the new tools site. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Use regex to detect branch--repo--owner hostname pattern and rewrite to matching helix-tools-website environment. All other hostnames (except localhost) redirect to tools.aem.live. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
trieloff
approved these changes
Apr 9, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
tools/oversight/explorer.htmlthat sends users to the OpTel oversight explorerwww.aem.live→https://tools.aem.live/tools/optel/oversight/explorer.html*--helix-website--adobe.aem.live→https://main--helix-tools-website--adobe.aem.live/tools/optel/oversight/explorer.html*--helix-website--adobe.aem.page→https://main--helix-tools-website--adobe.aem.page/tools/optel/oversight/explorer.htmlWhy a code change instead of a content redirect?
This file is served via codebus. Content-based redirects (e.g. via the redirect spreadsheet) don't apply to codebus URLs. The alternatives were a CDN-level redirect or an inline JS redirect. The JS approach is simpler and sufficient here — especially since these files will likely be deleted eventually, at which point we can either drop the redirect entirely or move it to a content redirect if the path has moved to contentbus by then.
Test plan
https://redirect-rum-explorer--helix-website--adobe.aem.page/tools/oversight/explorer.html?domain=www.aem.live— should redirect tohttps://main--helix-tools-website--adobe.aem.page/tools/optel/oversight/explorer.html?domain=www.aem.live🤖 Generated with Claude Code
Co-Authored-By: Claude Opus 4.6 (1M context) noreply@anthropic.com