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

Absolute URLs for social images #9

Open
nickfrosty opened this issue Jan 14, 2022 · 0 comments
Open

Absolute URLs for social images #9

nickfrosty opened this issue Jan 14, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@nickfrosty
Copy link
Owner

When linking to social images, (like in the og.image or twitter.image), their should be a way to easily add the website's domain into the url.

If the image item begins with a /, then auto link append the seo.baseUrl value to it?

Going from commonly hard coded website address:

		twitter: {
				card: 'summary_large_image',
				// url: '/',
				// title: '',
				image: 'https://frostbutter.com/media/domains.jpg',
			}, 

To no hard coded address:

		twitter: {
				card: 'summary_large_image',
				// url: '/',
				// title: '',
				image: '/media/domains.jpg',
			}, 

All giving the same result: an absolute url to the desired image

@nickfrosty nickfrosty added the enhancement New feature or request label Jan 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant