-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Closed
Description
Just found an interesting issue:
r.Static("/assets/", p.rootFolder+"/assets")
r.GET("/:code", p.redirectHandler)
Generates:
panic: wildcard route ':code' conflicts with existing children in path '/:code'
Seems like it's due to the fact that Static uses *filename wildcard. My plane is due in soon, so can't dig into it now, but I think any static wildcards should be generated below the url path specified, not within root domain.
As in:
/assets/*filename
instead of
/*filename
Any thoughts?
kirooha, xaionaro, odiferousmint, YamiOdymel, mubin86 and 1 more
Metadata
Metadata
Assignees
Labels
No labels