Review comment rendered in Razor intro (#6041)
The -- was interfering with the tag from being parsed.pull/6042/head
parent
09facef158
commit
b65283694b
|
@ -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).
|
||||
|
||||
|
|
Loading…
Reference in New Issue