mirror of
https://github.com/wger-project/flutter.git
synced 2026-02-18 00:17:48 +01:00
Fix sub-url handling
Previously the app was unable to work with instances installed on sub-urls because sub-url path was removed (say, server.name/api/v2/login instead of server.name/wger/api/v2/login).
This commit is contained in:
@@ -26,7 +26,7 @@ Uri makeUri(
|
||||
]) {
|
||||
final Uri uriServer = Uri.parse(serverUrl);
|
||||
|
||||
final pathList = ['api', 'v2', path];
|
||||
final pathList = [uriServer.path, 'api', 'v2', path];
|
||||
if (id != null) {
|
||||
pathList.add(id.toString());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user