Review comment rendered in Razor intro (#6041)

The -- was interfering with the tag from being parsed.
pull/6042/head
user135711 2018-04-20 13:20:17 -07:00 committed by Rick Anderson
parent 09facef158
commit b65283694b
1 changed files with 1 additions and 1 deletions

View File

@ -312,7 +312,7 @@ URL generation for pages supports relative names. The following table shows whic
| RedirectToPage("../Index") | *Pages/Index* |
| RedirectToPage("Index") | *Pages/Customers/Index* |
`RedirectToPage("Index")`, `RedirectToPage("./Index")`, and `RedirectToPage("../Index")` are <em>relative names</em>. The `RedirectToPage` parameter is <em>combined</em> with the path of the current page to compute the name of the destination page. <!-- Review: Original had The provided string is combined with the page name of the current page to compute the name of the destination page. -- page name, not page path -->
`RedirectToPage("Index")`, `RedirectToPage("./Index")`, and `RedirectToPage("../Index")` are <em>relative names</em>. The `RedirectToPage` parameter is <em>combined</em> with the path of the current page to compute the name of the destination page. <!-- Review: Original had The provided string is combined with the page name of the current page to compute the name of the destination page. page name, not page path -->
Relative name linking is useful when building sites with a complex structure. If you use relative names to link between pages in a folder, you can rename that folder. All the links still work (because they didn't include the folder name).