Skip to content

Add banner for visitors redirected from docs.anthology.com - #175

Merged
daveyherrera merged 1 commit into
mainfrom
add-redirect-banner
Aug 4, 2026
Merged

Add banner for visitors redirected from docs.anthology.com#175
daveyherrera merged 1 commit into
mainfrom
add-redirect-banner

Conversation

@daveyherrera

Copy link
Copy Markdown
Collaborator

Summary

  • Adds a dismissible top banner: "Did you notice? our url is now docs.blackboard.com!"
  • Shown only when the page loads with ?from=anthology-redirect in the URL (set by the docs-anthology-redirect repo's redirect page), then the param is stripped from the URL
  • Dismissal persists via localStorage so it won't reappear for that visitor
  • Uses Blackboard's actual brand green (#0dac14, pulled from blackboard.com's own CSS), darkened for AA contrast in light mode, with a lighter accent in dark mode

Test plan

  • Verified in dev + production build with ?from=anthology-redirect — banner shows, URL cleans up
  • Verified without the param — no banner
  • Verified dismiss persists across reloads
  • Verified light/dark theme rendering
  • Production build + browser console checked for React/hydration errors — none found

Depends on a companion change to docs-anthology-redirect to actually send the marker (tracked separately).

Shows "Did you notice? our url is now docs.blackboard.com!" when the
?from=anthology-redirect marker is present, then strips the param from
the URL. Dismissal persists via localStorage.
@daveyherrera
daveyherrera merged commit 5240fca into main Aug 4, 2026
1 check passed
@daveyherrera
daveyherrera deleted the add-redirect-banner branch August 4, 2026 17:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant