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

use isAbsoluteUrl helper to determine absolute urls #497

Merged
merged 1 commit into from
Nov 26, 2020
Merged

Conversation

oshi97
Copy link
Contributor

@oshi97 oshi97 commented Nov 26, 2020

This commit adds the isAbsoluteUrl helper to determine urls,
and updates the regex we were using to also detect urls of the
mailto:slapshot@gmail.com. It cherrypicks #475

TEST=manual

test that I can build a vertical standard page

* use isAbsoluteUrl helper to determine absolute urls

This commit adds the isAbsoluteUrl helper to determine urls,
and updates the regex we were using to also detect urls of the
 mailto:slapshot@gmail.com. In order to use this helper outside of
templates sent to the SDK, this helper also had to be added
to jambo, and the jambo version incremented to 1.9.0.
When we implement custom hbs helpers in jambo, this helper should
be moved fully to the hitchhiker theme.

J=SLAP-861
TEST=manual

test that urls like //yext.com will still be recognized as absolute
test using a data:image/gif;base64, url for favicon (uses jambo helper)
test using a mailto: link inside the professional location card
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
looks like #475 to me

Copy link
Contributor

@alexisgrow alexisgrow 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
Copy link
Contributor Author

oshi97 commented Nov 26, 2020

🦆 🦆 🦆 LGTM
looks like #475 to me

yeah just had to remove some remove some other changes and update the regex

@oshi97 oshi97 merged commit 6c8813b into master Nov 26, 2020
@oshi97 oshi97 deleted the hotfix/v1.16.1 branch November 26, 2020 01: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.

3 participants