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

Feature: Render a server side page for social network metatag #40

Closed
gabrieledarrigo opened this issue Jan 5, 2015 · 1 comment
Closed

Comments

@gabrieledarrigo
Copy link
Contributor

When a user try to share a page directly on Facebok or Google Plus the content can't be crawled by their bot; so, even if the meta tag are dynamically generated the y can't be useto display the right content.
Implements a method on the server that look at the user agent of the crawlers and redirect them to a server generated page, withe meta tag correctly generated.
The page can be empty.
See here for some example:

http://www.michaelbromley.co.uk/blog/171/enable-rich-social-sharing-in-your-angularjs-app

https://github.com/michaelbromley/angular-social-demo

$1 Variables:

http://stackoverflow.com/questions/13369285/what-does-the-1-argument-in-this-rewritecond-do

Consider even another approach with PhantomJS (due to the difficulty of the routing after the redirect)

@gabrieledarrigo
Copy link
Contributor Author

Completed.
Instead of servin an html file the application render an index.ejs file with the metatag correctly populated

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

No branches or pull requests

1 participant