Maelstromeous / ps2alerts-website

This project has moved!
https://github.com/ps2alerts/website
GNU General Public License v2.0
10 stars 1 forks source link

Metadata issues #34

Closed Maelstromeous closed 8 years ago

Maelstromeous commented 8 years ago

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

Maelstromeous commented 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.

Maelstromeous commented 8 years ago

Done.