Skip to content

Commit aa3b03e

Browse files
committed
review: update string trimming
1 parent dbc5a0a commit aa3b03e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pkg/extensions/webbotauth.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,9 @@ func downloadAndExtractWebBotAuth(ctx context.Context) (browserExtDir string, cl
177177

178178
// buildWebBotAuthExtension modifies templates, builds the extension, and returns the extension ID
179179
func buildWebBotAuthExtension(ctx context.Context, browserExtDir, hostURL string) (string, error) {
180+
// Normalize hostURL by removing trailing slashes to prevent double slashes in URLs
181+
hostURL = strings.TrimRight(hostURL, "/")
182+
180183
// Modify template files
181184
pterm.Info.Println("Modifying templates with host URL...")
182185

0 commit comments

Comments
 (0)