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

Solved: _scaped_fragment_ now doesn't add a slash #13

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions lib/mean-seo.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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);
Expand All @@ -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);
}
});
Expand Down