Skip to content

Commit c1781e1

Browse files
authored
Merge branch 'development' into patch-3
2 parents af703b5 + 223ff5a commit c1781e1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docs/_docfx/tutorial/helpers.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,8 @@ public void AddressAndPaymentShouldRerurnRedirectWithValidData(
186186

187187
Running this test will give us the following strange error message:
188188

189-
``` When calling AddressAndPayment action in CheckoutController expected redirect result to have resolved location to '/Checkout/Complete/1', but in fact received '/Home/Complete/1'.
189+
```
190+
When calling AddressAndPayment action in CheckoutController expected redirect result to have resolved location to '/Checkout/Complete/1', but in fact received '/Home/Complete/1'.
190191
```
191192

192193
The problem is that the request path is empty which makes the action route data being invalid. For that reason, we are receiving wrong redirection location. The fix is easy - just call **"WithRouteData"**:

0 commit comments

Comments
 (0)