File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -40,6 +40,7 @@ public function handle(
40
40
$ errorCode = $ this ->throwable ->getHttpCode ();
41
41
}
42
42
43
+ $ this ->originalUri = $ request ->getUri ();
43
44
$ errorUri = new Uri ("/_ $ errorCode " );
44
45
$ errorRequest = $ request ->withUri ($ errorUri );
45
46
Original file line number Diff line number Diff line change 15
15
use Gt \Http \Response ;
16
16
use Gt \Http \ServerInfo ;
17
17
use Gt \Http \StatusCode ;
18
+ use Gt \Http \Uri ;
18
19
use Gt \Input \Input ;
19
20
use Gt \Input \InputData \InputData ;
20
21
use Gt \Logger \LogConfig ;
@@ -49,6 +50,7 @@ class RequestHandler implements RequestHandlerInterface {
49
50
protected DynamicPath $ dynamicPath ;
50
51
protected HTMLDocument /*|NullViewModel*/ $ viewModel ;
51
52
protected BaseView $ view ;
53
+ protected Uri $ originalUri ;
52
54
53
55
public function __construct (
54
56
protected readonly Config $ config ,
@@ -89,6 +91,7 @@ public function getServiceContainer():Container {
89
91
public function handle (
90
92
ServerRequestInterface $ request
91
93
):ResponseInterface {
94
+ $ this ->originalUri = $ request ->getUri ();
92
95
$ this ->completeRequestHandling ($ request );
93
96
return $ this ->response ;
94
97
}
@@ -151,7 +154,7 @@ protected function handleRouting(ServerRequestInterface $request) {
151
154
$ this ->logicAssembly = $ router ->getLogicAssembly ();
152
155
153
156
$ this ->dynamicPath = new DynamicPath (
154
- $ request -> getUri () ->getPath (),
157
+ $ this -> originalUri ->getPath (),
155
158
$ this ->viewAssembly ,
156
159
$ this ->logicAssembly ,
157
160
);
You can’t perform that action at this time.
0 commit comments