feat(core-cms): redirect blog posts without new plugin#128
Merged
Conversation
This was referenced Feb 6, 2023
…om:TACC/tup-ui into task/redirect-blog-articles-without-plugin
- change CMS image to one with zero javascript for class names:
TACC/Core-CMS#596
- reduced open-external-post.html script complexity
If user says redirect to X, snippet shall not ignore on articles.
jarosenb
approved these changes
Feb 7, 2023
Collaborator
jarosenb
left a comment
There was a problem hiding this comment.
LGTM and works in dev.
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.
Overview
Redirect certain blog posts without using a plugin.
Changes since 2023-06-02 Feedback
Related
Changes
Testing
Open External Article in New Tab
Add Redirect Feature to News
external.snippets/news/open-external-post.htmlRedirect Article in List to New Tab
To make the link invisible, you may add
hiddenattribute on the link.external(add within "Info" section)external, opens article.Verify New Core-CMS Features
Verify the article page, for the
external-tagged article, show its abstract beneath the header and visual.Verify the
external-tagged article, in the news listing, has the classhas-blog-tag-external.Redirect an Article Page to New Tab
Set "HTML:" to https://www.designsafe-ci.org/community/news/2022/december/towers-storm/.1Leave "HTML:" blank 1
snippets/redirect.html?editat the end of the URL (e.g. https://dev.tup[…]towers-storm?edit.UI
Open External Article in New Tab
target="_blank"redirecttag, has link changeredirecttag, no link changeNew Core-CMS Features
Redirect Snippet
redirect.snippet.active.mov
Footnotes
The "HTML:" URL is not required since 14298c9, which tells redirect JavaScript how to auto-find an article's external URL. But, it will still work, and take precedence. ↩ ↩2 ↩3