This page sets the Base tag in the header. Look at the source of this page to see the result. There are two ways to do this:
Kit.Page.SetBase()
Kit.Page.SetBase("/some/page")
@inherits Custom.Hybrid.RazorTyped @Kit.Page.SetBase() @{ // You can also set a custom base path // It's commented out here, as it would affect all the links on the page // Kit.Page.SetBase("../"); // FYI: The output is invisible - it's just a <base> tag in the HTML header }
This sample modifies the HTML head, so it's not visible here.
To see the effect, look at the source in the browser
This tutorial inherits from the Custom.Hybrid.Razor14 or the Custom.Hybrid.RazorTyped base class.
Custom.Hybrid.Razor14
Custom.Hybrid.RazorTyped
This allows us to use Kit.Page to access an IPageService without having to use GetService<IPageService>.
Kit.Page
IPageService
GetService<IPageService>