GoogleCloudPlatform/govanityurls

path is not correctly redirected to the sub package

rakyll opened this issue · 0 comments

By using the configuration below:

host: rakyll.pizza

paths:
  /:
    repo: https://github.com/rakyll/pizza

rakyll.pizza/pineapple should server github.com/rakyll/pizza/pinapple but it is redirecting to the root of the repo.

$ curl rakyll.pizza/pineapple
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta name="go-import" content="rakyll.pizza git https://github.com/rakyll/pizza">
<meta name="go-source" content="rakyll.pizza https://github.com/rakyll/pizza https://github.com/rakyll/pizza/tree/master{/dir} https://github.com/rakyll/pizza/blob/master{/dir}/{file}#L{line}">
<meta http-equiv="refresh" content="0; url=https://godoc.org/rakyll.pizza">
</head>
<body>
Nothing to see here; <a href="https://godoc.org/rakyll.pizza">see the package on godoc</a>.
</body>
</html>%