Skip to content

Commit

Permalink
comp(http) Remove duplicated slashes from urls
Browse files Browse the repository at this point in the history
  • Loading branch information
Hacklone committed Dec 15, 2023
1 parent 6dc9293 commit 7ac8b10
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion projects/http/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@angular-cool/http",
"version": "15.0.1",
"version": "15.0.2",
"description": "Cool features over angular Http Client.",
"peerDependencies": {
"@angular/common": ">=10.0.0",
Expand Down
2 changes: 1 addition & 1 deletion projects/http/src/lib/cool-http.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ export class CoolHttp {
returnUrl = this._baseUrl + returnUrl;
}

return returnUrl;
return returnUrl.replace(/\/\//g, '/');
}

private _modifyOptions(options: RequestOptions): AngularRequestOptions {
Expand Down

0 comments on commit 7ac8b10

Please sign in to comment.