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 relUrl for SVG injection #256

Merged

Conversation

alanmcruickshank
Copy link
Contributor

@alanmcruickshank alanmcruickshank commented Oct 17, 2024

This resolves #255, and builds on #249. #249 fixed non-root hosting (#237), but broke alternate-domain hosting. I believe moving from absUrl to relUrl solves both issues (including making sure the social icons work on the Netlify deploy previews for this repo!).

Would appreciate review from @pkierski as author of #249.

Copy link

netlify bot commented Oct 17, 2024

Deploy Preview for gokarna-hugo ready!

Name Link
🔨 Latest commit f476d8b
🔍 Latest deploy log https://app.netlify.com/sites/gokarna-hugo/deploys/6710d51bd755830008ecc5c8
😎 Deploy Preview https://deploy-preview-256--gokarna-hugo.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@alanmcruickshank
Copy link
Contributor Author

Confirmed that social icons are working in the deploy preview: https://deploy-preview-256--gokarna-hugo.netlify.app/

@jamesericdavidson
Copy link
Contributor

jamesericdavidson commented Oct 17, 2024 via email

@pkierski
Copy link
Contributor

Looks good for me. Indeed relUrl is more generic for this than absUrl.

@526avijitgupta
Copy link
Member

lgtm thanks @alanmcruickshank 🙌

@526avijitgupta 526avijitgupta merged commit 9448682 into gokarna-theme:main Oct 20, 2024
4 checks passed
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.

SVG Injection bug when hosting on non-canonical url
4 participants