Skip to content

A self-hosted dashboard that puts all your feeds in one place

Add some foolproofery

Svilen Markov4de465e544f1
diff --git a/internal/glance/glance.go b/internal/glance/glance.go
index bebb78b..ce7a7a0 100644
--- a/internal/glance/glance.go
+++ b/internal/glance/glance.go
@@ -133,6 +133,8 @@ func NewApplication(config *Config) (*Application, error) {
config = &app.Config
+ config.Server.BaseURL = strings.TrimRight(config.Server.BaseURL, "/")
+
if config.Server.BaseURL != "" &&
config.Theme.CustomCSSFile != "" &&
strings.HasPrefix(config.Theme.CustomCSSFile, "/assets/") {