From 90da22afbb8d96028afea59527fd73177ad71d66 Mon Sep 17 00:00:00 2001 From: tomymolina Date: Thu, 25 Jun 2015 14:37:10 +0200 Subject: [PATCH] Solved: _scaped_fragment_ now doesn't add a slash --- lib/mean-seo.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/mean-seo.js b/lib/mean-seo.js index 3cfd215..3401162 100644 --- a/lib/mean-seo.js +++ b/lib/mean-seo.js @@ -44,7 +44,7 @@ module.exports = function SEO(options) { var url, key; if (escapedFragment.length > 0) { // If the request is in # style. - url = req.protocol + '://' + req.get('host') + req.path + '#!/' + escapedFragment; + url = req.protocol + '://' + req.get('host') + req.path + '#!' + escapedFragment; // Use the escapedFragment as the key. key = escapedFragment; } else { @@ -63,7 +63,7 @@ module.exports = function SEO(options) { if (err) { next(err); } else { - //Save page to cache + //Save page to cache cache.set(key, html, function(err, res) { if (err) { next(err); @@ -75,7 +75,7 @@ module.exports = function SEO(options) { } }); } else { - //If page was found in cache, output the result + //If page was found in cache, output the result res.send(page.content); } });