Skip to content

Commit cbb2343

Browse files
committed
fix: make url's relative
1 parent 09cb241 commit cbb2343

File tree

6 files changed

+8
-6
lines changed

6 files changed

+8
-6
lines changed

frank-flow/src/frontend/src/app/flow/options/nested-element/nested-element.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export class NestedElementComponent implements OnInit, OnDestroy {
4747
public frankDocParentElements: any[] = [];
4848
public structureNode!: FlowStructureNode;
4949
public frankDocElementsURI =
50-
environment.runnerUri + '/' + environment.frankDocElements;
50+
environment.originURL + environment.frankDocElements;
5151
public selectedNestedElement!: string;
5252

5353
constructor(

frank-flow/src/frontend/src/app/flow/options/options.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export class OptionsComponent implements OnInit, OnDestroy {
4141
public frankDocParentElements: any[] = [];
4242
public structureNode!: FlowStructureNode;
4343
public frankDocElementsURI =
44-
environment.runnerUri + '/' + environment.frankDocElements;
44+
environment.originURL + environment.frankDocElements;
4545
public selectedNestedElement!: any;
4646
public showNestedElements = false;
4747

frank-flow/src/frontend/src/app/shared/services/file.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { environment } from '../../../environments/environment';
99
})
1010
export class FileService {
1111
private readonly apiConfigurationsUrl =
12-
environment.runnerUri + '/frank-flow/api/configurations';
12+
environment.relativeURL + 'api/configurations';
1313
private configurationFiles = new BehaviorSubject<Configuration[]>([]);
1414

1515
constructor() {

frank-flow/src/frontend/src/app/shared/services/frank-doc.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { Observable, ReplaySubject } from 'rxjs';
77
})
88
export class FrankDoc {
99
private readonly frankDocUrl =
10-
environment.runnerUri + '/' + environment.frankDocJsonPath;
10+
environment.originURL + environment.frankDocJsonPath;
1111
private frankDoc = new ReplaySubject<any>(1);
1212

1313
constructor() {
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
export const environment = {
22
production: true,
3-
runnerUri: window.location.origin,
3+
originURL: window.location.origin + '/',
4+
relativeURL: window.location.href,
45
frankDocJsonPath: 'iaf/api/frankdoc/files/frankdoc.json',
56
frankDocElements: 'iaf/frankdoc/#!/All',
67
};

frank-flow/src/frontend/src/environments/environment.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44

55
export const environment = {
66
production: false,
7-
runnerUri: window.location.origin,
7+
originURL: window.location.origin + '/',
8+
relativeURL: window.location.href,
89
frankDocJsonPath: 'iaf/api/frankdoc/files/frankdoc.json',
910
frankDocElements: 'iaf/frankdoc/#!/All',
1011
};

0 commit comments

Comments
 (0)