-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ADAPT-1178 Asset download in new window #88
Conversation
@@ -37,7 +37,9 @@ const OodSupportCard = (props) => { | |||
} | |||
{(props.blok.link.linktype === "url" || props.blok.link.linktype === "asset") && | |||
<a href={props.blok.link.url ? props.blok.link.url : props.blok.link.cached_url} | |||
className={`ood-support-card__link su-bg-${props.blok.backgroundColor}`}> | |||
className={`ood-support-card__link su-bg-${props.blok.backgroundColor}`} | |||
{...props.blok.link.linktype === "asset" ? {target : "_blank"} : {}} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where did this request come from? Normally we favor allowing the user to choose their way of getting the content.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Came out of the client meeting yesterday, and @kerri-augenstein agrees that this could be a special case (for asset link only).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That should be fine with this site then, since they said their target audience aren't mobile users.
{props.blok.link.linktype === "url" && | ||
<a href={props.blok.link.url} | ||
{(props.blok.link.linktype === "url" || props.blok.link.linktype === "asset") && | ||
<a href={props.blok.link.url ? props.blok.link.url : props.blok.link.cached_url} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is cached_url?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's how Storyblok references the link if it's an asset link
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah found the doxn: https://www.storyblok.com/faq/link-object-history
Thanks.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
GTG
READY FOR REVIEW
Summary
Review By (Date)
Criticality
Review Tasks
Setup tasks and/or behavior to test
Front End Validation
Backend / Functional Validation
Code
Code security
General
Affected Projects or Products
Associated Issues and/or People
@mention
them here)Resources