Closed Maelstromeous closed 8 years ago
Possible solution as suggsted by my fellow co-workers is to wrap the application in a simple PHP implementation, serving the correct HTML structure upon load, then having the frontend app take over after that.
This may complicate matters as I would have to maintain two sets of routers and information. I could just wrap it in one config file and have the router use those, then have the twig template look at that information. Will investigate.
There doesn't seem to be a rock solid Javascript solution (as it's probably impossible anyway). Everything I've looked into suggests using some kind of server-side script to serve the correct metadata.
Done.
So apparently Facebook and the like hasn't caught up with the modern Javascript world. I need to implement a server side solution which intercepts the bots, and serves them a simple html page with the proper metadata.
http://www.michaelbromley.co.uk/blog/171/enable-rich-social-sharing-in-your-angularjs-app