Skip to content

Commit

Permalink
Merge pull request steeve#10 from BeOleg/facebook_graph_patch
Browse files Browse the repository at this point in the history
Patch that makes your application readable to crawlers if you  have '!' ...
  • Loading branch information
steeve committed Oct 30, 2013
2 parents 8f1763e + 1369e2e commit 33e3b9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion angular-seo-server.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ server.listen(port, function (request, response) {
var route = parse_qs(request.url)._escaped_fragment_;
var url = urlPrefix
+ request.url.slice(1, request.url.indexOf('?'))
+ '#!' + route;
+ '#!' + decodeURIComponent(route);
renderHtml(url, function(html) {
response.statusCode = 200;
response.write(html);
Expand Down

0 comments on commit 33e3b9b

Please sign in to comment.