code: func PathPrefix(r *http.Request) string {
  	if prefix := httputil.PathBase(r); prefix != "" {
  		return prefix
  	}
  	return "/"
  }
docs: // PathPrefix returns the app's prefix on the app handler if the request was proxied
  // through Perkeep, or "/" if the request went directly to the app.