Skip to content

Commit

Permalink
fix: Share link adding a second slash (#604)
Browse files Browse the repository at this point in the history
  • Loading branch information
TomBursch authored Dec 26, 2024
1 parent 8da1fb8 commit b2202ae
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions kitchenowl/lib/services/api/api_service.dart
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ class ApiService {
}

static Future<void> connectTo(String url, {String? refreshToken}) async {
url = url.endsWith("/") ? url.substring(0, url.length - 1) : url;
getInstance().dispose();
_instance = ApiService._internal(url);
_instance!.refreshToken = refreshToken ?? '';
Expand Down

0 comments on commit b2202ae

Please sign in to comment.