Skip to content

Conversation

@wesleyboar
Copy link
Member

@wesleyboar wesleyboar commented Nov 18, 2025

Overview

External articles can be managed automatically via script. Snippet unnecessary.

Note

Snippets have already been deleted on prod in favor of the new script, loaded via CDN. But, review welcome to improve/revise solution.

Related

Changes

  • deleted major snippets:
    • news/open-external-post.html
    • redirect.html
  • added simple new script:
    • ad-hoc/external-articles.js
  • added new script to ad-hoc scripts:
    • ad-hoc.js

Testing

  1. Visit news page that has external article e.g.

    which has article Investing in the Future of Texas.

  2. Verify link of Investing in the Future of Texas opens article on different website.

  3. Visit that TACC news article: https://tacc.utexas.edu/news/latest-news/2024/05/06/K5-training/

  4. Verify article redirects to: https://weteachcs.org/news/latest-news/2024/05/06/K5-training/

UI

open.in.new.site.mov
redirect.mov

Notes

After TUP CMS has TACC/Core-CMS#1033, I will delete this new script here.

This is all still a solution that assumes user has JavaScript enabled. Ideally, a server-side solution is implemented instead.

@wesleyboar wesleyboar changed the title refactor: open external articles without snippet refactor: manage external articles without snippet Nov 18, 2025
@wesleyboar wesleyboar marked this pull request as ready for review November 18, 2025 02:33
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.

2 participants