We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1c5dcb6 commit c47b673Copy full SHA for c47b673
src/src/app/services/api.service.ts
@@ -224,7 +224,7 @@ export class ApiService {
224
createSharedTrip(trip_id: number): Observable<string> {
225
return this.httpClient
226
.post<SharedTripURL>(`${this.apiBaseUrl}/trips/${trip_id}/share`, {})
227
- .pipe(map((t) => t.url));
+ .pipe(map((t) => window.location.origin + t.url));
228
}
229
230
deleteSharedTrip(trip_id: number): Observable<null> {
0 commit comments