Skip to content

refactor: manage external articles without snippet#529

Closed
wesleyboar wants to merge 17 commits into
mainfrom
refactor/external-article-mgmt-sans-snippet
Closed

refactor: manage external articles without snippet#529
wesleyboar wants to merge 17 commits into
mainfrom
refactor/external-article-mgmt-sans-snippet

Conversation

@wesleyboar

@wesleyboar wesleyboar commented Nov 18, 2025

Copy link
Copy Markdown
Member

Overview

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

Important

Superseded by #535.

Note

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

Tip

Tested on dev via v1.1.20-20260201.

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.e. in #535 — I will delete the new script …/js/ad-hoc/external-articles.js.

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
wesleyboar added a commit that referenced this pull request Feb 5, 2026
TACC/Core-CMS#1033 automates redirect logic.

#529 was stepping stone.

But this PR does not need those steps nor old code.
@wesleyboar

wesleyboar commented Feb 5, 2026

Copy link
Copy Markdown
Member Author

Will be closed by #535.

[Safe to merge. #535 will reduce code even more.]

@wesleyboar

Copy link
Copy Markdown
Member Author

@jarosenb, I clarify relationship to #535:

#535 will reduce code even more, but this #529 is merge-able as is.

@wesleyboar

Copy link
Copy Markdown
Member Author

Important

Superseded by #535.

@wesleyboar wesleyboar closed this Mar 30, 2026
@wesleyboar
wesleyboar deleted the refactor/external-article-mgmt-sans-snippet branch March 30, 2026 16:54
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