Permalink
Browse files

Fixed plugin route

  • Loading branch information...
1 parent dc287c3 commit 5902a9044efcdc5c10b72ffb102d46712a36ab73 @balupton balupton committed Jan 14, 2013
Showing with 2 additions and 2 deletions.
  1. +1 −1 app/out/docpad.js
  2. +1 −1 app/src/docpad.coffee
View
2 app/out/docpad.js
@@ -369,7 +369,7 @@ docpadConfig = {
issueQuery = req.params[0] || '';
return res.redirect(301, "https://github.com/bevry/docpad/issues/" + issueQuery);
});
- server.get(/^\/(?:p|plugins)(?:\/(.*))?$/, function(req, res) {
+ server.get(/^\/(?:p|plugin)(?:\/(.*))?$/, function(req, res) {
var plugin;
plugin = req.params[0] || '';
return res.redirect(301, "https://github.com/docpad/docpad-plugin-" + plugin);
View
2 app/src/docpad.coffee
@@ -438,7 +438,7 @@ docpadConfig =
res.redirect(301, "https://github.com/bevry/docpad/issues/#{issueQuery}")
# Plugins
- server.get /^\/(?:p|plugins)(?:\/(.*))?$/, (req,res) ->
+ server.get /^\/(?:p|plugin)(?:\/(.*))?$/, (req,res) ->
plugin = req.params[0] or ''
res.redirect(301, "https://github.com/docpad/docpad-plugin-#{plugin}")

0 comments on commit 5902a90

Please sign in to comment.