Skip to content

Commit

Permalink
fix path resolution
Browse files Browse the repository at this point in the history
  • Loading branch information
vintikzzz committed Dec 3, 2024
1 parent 338a31b commit 628668f
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions services/url_builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,11 +135,7 @@ const ServiceSeparator = "~"

func (s *BaseURLBuilder) BuildBaseURL(ctx context.Context, i *MyURL) (u *MyURL, err error) {
u = i
if len(s.r.Files) > 1 {
u.Path = "/" + s.r.ID + "/" + strings.TrimRight(s.r.Name+s.i.PathStr, "/")
} else {
u.Path = "/" + s.r.ID + "/" + strings.Trim(s.i.PathStr, "/")
}
u.Path = "/" + s.r.ID + "/" + strings.Trim(s.i.PathStr, "/")
q := u.Query()
if s.g.Query("api-key") != "" {
q.Add("api-key", s.g.Query("api-key"))
Expand Down

0 comments on commit 628668f

Please sign in to comment.