File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed
packages/neon/neon/lib/src/models Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -95,13 +95,11 @@ class Account implements Credentials {
95
95
/// The paths of the [serverURL] and the [uri] need to be join to get the full path, unless the [uri] path is already an absolute path.
96
96
/// In that case an instance hosted at a sub folder will already contain the sub folder part in the [uri] .
97
97
Uri completeUri (final Uri uri) {
98
- final result = serverURL.replace (
99
- queryParameters: uri.queryParameters,
100
- fragment: uri.fragment,
101
- );
102
- return result.replace (
103
- path: uri.hasAbsolutePath ? uri.path : '${result .path }/${uri .path }' ,
104
- );
98
+ final result = serverURL.resolveUri (uri);
99
+ if (! uri.hasAbsolutePath) {
100
+ return result.replace (path: '${serverURL .path }/${uri .path }' );
101
+ }
102
+ return result;
105
103
}
106
104
107
105
/// Removes the [serverURL] part from the [uri] .
You can’t perform that action at this time.
0 commit comments