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

Handling backslash in SITEURL and cover image #106

Closed
arulrajnet opened this issue Sep 1, 2024 · 0 comments
Closed

Handling backslash in SITEURL and cover image #106

arulrajnet opened this issue Sep 1, 2024 · 0 comments
Assignees
Labels

Comments

@arulrajnet
Copy link
Owner

Given The SITEURL has the value as https://example.com/
When The cover in article is assets/images/cover.png
Then The Generated HTML has the image with // in URL. For ex: https://example.com//assets/images/cover.png

Given The SITEURL has the value as https://example.com/
When The cover in article is /assets/images/cover.png
Then The Generated HTML has the image with /// in URL. For ex: https://example.com///assets/images/cover.png

Given The SITEURL has the value as https://example.com
When The cover in article is /assets/images/cover.png
Then The Generated HTML has the image with // in URL. For ex: https://example.com//assets/images/cover.png

Refer https://github.com/arulrajnet/attila/blob/master/templates/article.html#L10

Handle this for all kind of images in theme.

The workaround

  • Don't use backslash at the end in SITEURL. For ex: https://example.com
  • If the image is in the local, Then don't start with / For ex: assets/images/cover.png
@arulrajnet arulrajnet added the bug label Sep 1, 2024
@arulrajnet arulrajnet self-assigned this Sep 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant