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

Support embed preview via metadata #1117

Open
Ryan-B-W opened this issue Oct 28, 2023 · 2 comments
Open

Support embed preview via metadata #1117

Ryan-B-W opened this issue Oct 28, 2023 · 2 comments
Assignees
Labels
feature New feature or request open to contributors A good issue for a contributor to tackle

Comments

@Ryan-B-W
Copy link
Contributor

Is your new feature related to a problem? Please describe.
When linking to recipes on RecipeSage, services that generate a preview fail to do so since RecipeSage does not include the needed meta tags in the document head.

Describe the solution you'd like
Include the required meta tags to provide recipe image, title, description, url, and site_name (RecipeSage) on recipe pages. Specifically, utilize Open Graph Protocol and potentially also other RDFa based tagging.

Describe alternatives you've considered
Non seem applicable to provide this feature.

Additional context
Other information could potentially be exposed programmatically in this way, for example:

  • labels as keywords
  • image:alt description of image
  • Use RDFa formats like Microdata and Microformats to provide machine-readable annotations of other elements on the page; however, that is incidental to the desire of this feature request and would warrant a separate request.
@Ryan-B-W Ryan-B-W added the feature New feature or request label Oct 28, 2023
@julianpoy
Copy link
Owner

The big challenge with this is that the app is an SPA and has no semblance of SSR (in prod, assets are served from an S3 bucket through CloudFront).

I think this would require some form of SSR to facilitate.

@julianpoy
Copy link
Owner

I think this could fairly easily be solved by adding a sub-router to the API, and update the share URL to that.

Would probably put it behind recipesage.com/ssr/share

@julianpoy julianpoy added the open to contributors A good issue for a contributor to tackle label Nov 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request open to contributors A good issue for a contributor to tackle
Projects
None yet
Development

No branches or pull requests

2 participants