aspnetcore/src/Mvc/test/WebSites
Ryan Nowak 3d448f7197 Fix #5055 use of page parameter (#7441)
This change introduces some new heuristics to make it easier to use
'page' or other resevered parameter names as parameters in URL
generation.

--

The main change here is to allow the link generation tree to *ignore* a
value passed in to URL generation when it conflicts with an endpoint's
required values.

The main concern of this feature area is "how do we tell whether you are
linking to an action or a page?". Routing attempts to do the right thing
will requiring very little from the user in terms of expressing intent.

In this case, we try to tell the difference between an attempt to generate
a link to an action due to the presence of the 'action' parameter and
absence of the 'page' parameter. This obviously doesn't work when you
want to use 'page' as a non-reserved parameter in an action. The same
case occurs for pages, but users are already used to the idea that
'action' is a reserved word in MVC.

We can loosen this restriction when the value that's supplied for 'page'
is known not to be any existing value of the 'page' route value.

This approach seems somewhat reasonable but has many of the problems inherent
to this area. When it fails (the value you want to use for 'page' causes
a conflict) - it's going to be esoteric and hard to understand.
2019-02-22 11:44:43 -08:00
..
ApiExplorerWebSite Update MVC/Routing Startup Experience (#7425) 2019-02-11 19:18:05 -08:00
ApplicationModelWebSite Make Visual Studio 2019 a prerequisite to building this repo (#7005) 2019-02-20 09:53:53 -08:00
BasicWebSite [Components] Prerrendering startup experience (#7770) 2019-02-21 16:26:44 -08:00
Common
ControllersFromServicesClassLibrary
ControllersFromServicesWebSite Make Visual Studio 2019 a prerequisite to building this repo (#7005) 2019-02-20 09:53:53 -08:00
CorsWebSite Throw if CORS policy is configured to allow credentials and any origin (#7751) 2019-02-21 09:06:00 -08:00
ErrorPageMiddlewareWebSite Re-enable skipped runtime compilation tests 2019-02-13 16:45:36 -08:00
FSharpWebSite
FilesWebSite Replace IHostingEnvironment with IWebHostEnvironment (#7725) 2019-02-19 21:11:52 -08:00
FormatterWebSite Disable AllowSynchronousIO by default in all servers #4774 (#5120) 2019-02-15 16:05:49 -08:00
GenericHostWebSite Make Visual Studio 2019 a prerequisite to building this repo (#7005) 2019-02-20 09:53:53 -08:00
HtmlGenerationWebSite Make Visual Studio 2019 a prerequisite to building this repo (#7005) 2019-02-20 09:53:53 -08:00
RazorBuildWebSite Make Visual Studio 2019 a prerequisite to building this repo (#7005) 2019-02-20 09:53:53 -08:00
RazorBuildWebSite.PrecompiledViews
RazorBuildWebSite.Views
RazorPagesClassLibrary Make Visual Studio 2019 a prerequisite to building this repo (#7005) 2019-02-20 09:53:53 -08:00
RazorPagesWebSite Make Visual Studio 2019 a prerequisite to building this repo (#7005) 2019-02-20 09:53:53 -08:00
RazorWebSite Make Visual Studio 2019 a prerequisite to building this repo (#7005) 2019-02-20 09:53:53 -08:00
RoutingWebSite Fix #5055 use of page parameter (#7441) 2019-02-22 11:44:43 -08:00
SecurityWebSite Make Visual Studio 2019 a prerequisite to building this repo (#7005) 2019-02-20 09:53:53 -08:00
SimpleWebSite Update MVC/Routing Startup Experience (#7425) 2019-02-11 19:18:05 -08:00
TagHelpersWebSite Make Visual Studio 2019 a prerequisite to building this repo (#7005) 2019-02-20 09:53:53 -08:00
VersioningWebSite Update MVC/Routing Startup Experience (#7425) 2019-02-11 19:18:05 -08:00
XmlFormattersWebSite Update MVC/Routing Startup Experience (#7425) 2019-02-11 19:18:05 -08:00
Directory.Build.props