Skip to content
This repository was archived by the owner on Apr 8, 2020. It is now read-only.

open graph meta tags is inserted inside of the body. #629

Closed
consigliory opened this issue Jan 31, 2017 · 1 comment
Closed

open graph meta tags is inserted inside of the body. #629

consigliory opened this issue Jan 31, 2017 · 1 comment

Comments

@consigliory
Copy link

Hi. When I create meta tags (og:image ect.) but this tags is created inside of but it should be inside of . I see it make sense because it makes root of app and it is already in the body. Could you suggest how can I insert meta open graph tags in the head?
Thanks

@SteveSandersonMS
Copy link
Member

SteveSandersonMS commented Jan 31, 2017

It's difficult at the moment - you have to do something like the technique shown here: #384 (comment) That approach lets you run the server-side prerendering in a controller, so that your boot-server.ts can return arbitrary extra data values that you can pass to your MVC view.

It will get easier when we implement #607. Until then you'll need to either follow the approach I linked above (which is quite a bit of code unfortunately), or implement the logic for determining your og:image tag data in regular ASP.NET MVC controller code rather than in your SPA code.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants