Skip to content
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

Add @root. prefix to {{relativePath}} in all cards/dacards templates #516

Merged
merged 1 commit into from
Dec 1, 2020

Conversation

oshi97
Copy link
Contributor

@oshi97 oshi97 commented Dec 1, 2020

Certains cards reference {{relativePath}} inside of
an inline partial, like a CTA partial (see the standard card)
Since relativePath is passed into all cards at the root context,
through the SDK's setState(), all cards will have relativePath
as part of their root context.

TEST=manual

in the standard card:
test that I can create a custom card, and add a hardcoded cta
with an iconUrl pointing to a static asset

test that relative links still work in the standard card cta

Certains cards reference {{relativePath}} inside of
an inline partial, like a CTA partial (see the standard card)
Since relativePath is passed into all cards at the root context,
through the SDK's setState(), all cards will have relativePath
as part of their root context.

TEST=manual

in the standard card:
test that I can create a custom card, and add a hardcoded cta
with an iconUrl pointing to a static asset

test that relative links still work in the standard card cta
Copy link
Contributor

@creotutar creotutar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❄️ ❄️ ❄️ LGTM

@oshi97 oshi97 merged commit 47235a1 into release/v1.17 Dec 1, 2020
@oshi97 oshi97 deleted the dev/root-relative-path branch December 1, 2020 17:36
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