Skip to content

Commit 471f7bd

Browse files
committed
fix: remove slash when it is the first char on the link parameter
1 parent beb070e commit 471f7bd

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

internal/manager/click.go

+4
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ func (s *Service) handleClick(context *gin.Context) {
3737
return
3838
}
3939

40+
if encodedLink[0] == '/' {
41+
encodedLink = encodedLink[1:]
42+
}
43+
4044
link, err := decode(encodedLink)
4145
if err != nil {
4246
context.AbortWithStatus(http.StatusBadRequest)

0 commit comments

Comments
 (0)