Skip to content

Commit 223ff5a

Browse files
authored
Merge pull request #367 - Updated helpers.md
Updated helpers.md
2 parents 3527613 + da5dcf2 commit 223ff5a

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)