You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm porting some existing code from using net/http to using gin. Unfortunately gin breaks all the relative links in the existing HTML templates by stripping off the trailing slash from URLs. It does this even if I set r.RedirectTrailingSlash = false using:
r := gin.Default()
r.SetTrustedProxies(nil)
r.RedirectTrailingSlash = false
Any ideas how I prevent gin from doing this?
The text was updated successfully, but these errors were encountered:
I'm porting some existing code from using net/http to using gin. Unfortunately gin breaks all the relative links in the existing HTML templates by stripping off the trailing slash from URLs. It does this even if I set r.RedirectTrailingSlash = false using:
Any ideas how I prevent gin from doing this?
The text was updated successfully, but these errors were encountered: