Skip to content

Commit 4f15f29

Browse files
committed
routing: https
1 parent 8c7a52d commit 4f15f29

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

doc/cs/routing.texy

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,9 @@ Přesměrování všech adres u již zaběhnuté aplikace lze docílit pomocí s
313313
Routy generují URL se stejným protokolem, s jakým byla stránka načtena. Potřebujeme-li, aby na určité adresy byl použit jiný protokol, použijeme ho v masce routy.
314314

315315
/--php
316+
// Použije se stejný protokol, s jakým byla stránka načtena
317+
$route = new Route('//%host%/<presenter>/<action>','Homepage:default');
318+
316319
// Přesměrování na HTTP protokol
317320
$route = new Route('http://%host%/<presenter>/<action>','Homepage:default');
318321

doc/en/routing.texy

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -378,6 +378,9 @@ Forward all addresses for already well-established applications can be achieved
378378
Routes generate URLs with the same protocol, which the page was loaded. If we need, so that certain addresses use other protocol, we use them in mask of route.
379379

380380
/--php
381+
// Uses the same protocol, which the page was loaded
382+
$route = new Route('//%host%/<presenter>/<action>','Homepage:default');
383+
381384
// Forwarding to HTTP protocol
382385
$route = new Route('http://%host%/<presenter>/<action>','Homepage:default');
383386

0 commit comments

Comments
 (0)