Fallback pour localStorage et config simplifiée de l'adresse publique de l'app client

This commit is contained in:
2020-06-16 18:02:28 -04:00
parent 47020f7beb
commit e0b59de77c
5 changed files with 29 additions and 10 deletions

View File

@ -88,8 +88,7 @@ func handleExportProject(w http.ResponseWriter, r *http.Request) {
url string
)
url = "http://" + string(cfg.Client.BaseURL) + string(cfg.Client.Address) + "/pdf/" + string(projectID)
fmt.Println(url)
url = string(cfg.Client.PublicBaseURL) + "/pdf/" + string(projectID)
// Create new PDF generator
pdfg, err := wkhtmltopdf.NewPDFGenerator()