Skip to content

Commit 981da03

Browse files
committed
4565: Removed subroutes from the client since it is not used. Added documentation
1 parent cbf0f05 commit 981da03

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -504,6 +504,15 @@ classDiagram
504504
Feed "0..n" -- "1" FeedSource
505505
```
506506

507+
## Online check for Client
508+
509+
If the client does not have internet when starting, it cannot load the assets needed for the Client.
510+
The `public/client/online-check` has been added to handle this.
511+
The folder contains an `index.html`, that checks connectivity before redirecting to `/client`.
512+
If this index.html is cached in the browser the online check page can load without internet.
513+
514+
To use this, set the starting path of the Client to `/client/online-check`.
515+
507516
## Error codes in the Client
508517

509518
The Client at `/client` can display the following error codes:

config/routes.yaml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ authentication-unbind-screen:
2121
controller: App\Controller\Api\AuthScreenUnbindController
2222

2323
admin:
24+
# Sub routes are included to pass route control to the React App.
2425
path: /admin{subroutes}
2526
requirements:
2627
# https://symfony.com/doc/current/routing.html#slash-characters-in-route-parameters
@@ -29,10 +30,7 @@ admin:
2930
controller: App\Controller\Admin\AdminController
3031

3132
client:
32-
path: /client{subroutes}
33-
requirements:
34-
# https://symfony.com/doc/current/routing.html#slash-characters-in-route-parameters
35-
subroutes: '.*'
33+
path: /client
3634
methods: ['GET']
3735
controller: App\Controller\Client\ClientController
3836

@@ -48,6 +46,7 @@ client_config:
4846

4947
when@dev:
5048
templates:
49+
# Sub routes are included to pass route control to the React App.
5150
path: /template{subroutes}
5251
methods: ['GET']
5352
requirements:

0 commit comments

Comments
 (0)