Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed plugin route

  • Loading branch information...
commit 5902a9044efcdc5c10b72ffb102d46712a36ab73 1 parent dc287c3
Benjamin Lupton balupton authored
Showing with 2 additions and 2 deletions.
  1. +1 −1  app/out/docpad.js
  2. +1 −1  app/src/docpad.coffee
2  app/out/docpad.js
View
@@ -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);
2  app/src/docpad.coffee
View
@@ -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}")
Please sign in to comment.
Something went wrong with that request. Please try again.