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

Encode theme folder when generating theme preview link #599

Merged
merged 1 commit into from
Nov 18, 2021

Conversation

anthmatic
Copy link
Contributor

@anthmatic anthmatic commented Nov 15, 2021

Description and Context

Fixes #596

Encodes the theme folder when generating a link to the theme previewer.

Screenshots

image

TODO

When testing this, I did find a flaw in the way this link is generated. If the theme is uploaded to a different folder, the preview link will not be accurate. For example

hs upload "cool theme" theme2000 would yield a link to /theme-previewer/1234567/edit/cool%20theme when it should point to /theme-previewer/1234567/edit/theme2000

Filed in #600

Who to Notify

@brandenrodgers
Copy link
Contributor

When testing this, I did find a flaw in the way this link is generated. If the theme is uploaded to a different folder, the preview link will not be accurate. For example

Interesting. It sounds like we're using src as the theme path. Should we use dest instead?

Copy link
Contributor

@brandenrodgers brandenrodgers left a comment

Choose a reason for hiding this comment

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

👍

@anthmatic anthmatic merged commit 7c370df into master Nov 18, 2021
@anthmatic anthmatic deleted the update-preview-link branch November 18, 2021 21:03
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.

"To preview theme, visit: " should be URL encoded
2 participants