TF-934 Add link for item list emails

This commit is contained in:
dab246
2022-11-04 21:56:10 +07:00
committed by Dat H. Pham
parent 7f62d8257d
commit a4eb2ffbec
8 changed files with 123 additions and 6 deletions
@@ -19,11 +19,15 @@ extension ServicePathExtension on ServicePath {
.map((query) => '${query.queryName}=${query.queryValue}').join('&')}');
}
ServicePath withPathParameter([String? pathParameter]) {
ServicePath withPathParameter(String? pathParameter) {
if (pathParameter == null || pathParameter.isEmpty) {
return this;
}
return ServicePath('$path/$pathParameter');
if (path.lastIndexOf('/') == path.length - 1) {
return ServicePath('$path$pathParameter');
} else {
return ServicePath('$path/$pathParameter');
}
}
}