The value is decrypted and checked to determine whether the request being made is one to a Surface Controller or not. (SurfaceControllers kind of sit on top of MVCControllers, Umbraco needs to determine whether a request needs to be passed to a SurfaceController - https://our.umbraco.org/Documentation/Reference/Routing/surface-controllers)
The value is decrypted and checked to determine whether the request
being made is one to a Surface Controller or not.
But what for? Tell me more about reason to do it?
Are there only one purpose of ufprt - distinguish who request is intended, SurfaceController or common Controller?
What will happen if I just request SurfaceController without ufprt?
How works Html.BeginUmbracoForm() and Url.SurfaceAction()?
Hello, Umbracians.
I'am trying to examine how to interract MVC controllers with html forms.
And there are few misunderstandings about how it works.
Here is result of
Html.BeginUmbracoForm("actionName", "controllerName")
What a atrange value in
action
atribute? Looks like encrypted name ofSurfaceContoller
.And what is it:
Again, looks like some kind of encrypted data that will be send to
SurfaceController
.But, how it interract each other I have no idea. Is it a common ASP MVC mechanism or Umbraco feature?
Hi Dmitriy
The ufprt value is an 'Umbraco thing'
To assist with routing of the request for a Html.BeginUmbracoForm and Url.SurfaceAction scenario.
The ufprt contains an encrypted version of the surface controller route values.
and if you look here:
https://github.com/umbraco/Umbraco-CMS/blob/59f9a64e816e40e52a64e1636f743da5effb98b6/src/Umbraco.Web/Mvc/RenderRouteHandler.cs
The value is decrypted and checked to determine whether the request being made is one to a Surface Controller or not. (SurfaceControllers kind of sit on top of MVCControllers, Umbraco needs to determine whether a request needs to be passed to a SurfaceController - https://our.umbraco.org/Documentation/Reference/Routing/surface-controllers)
regards
Marc
But what for? Tell me more about reason to do it? Are there only one purpose of
ufprt
- distinguish who request is intended,SurfaceController
or commonController
?What will happen if I just request
SurfaceController
withoutufprt
?I'm not getting your Query please elaborate what you have to do or to find out?
Hi
I want to know:
ufprt value
for and how that parameter is used next?SurfaceController
name encryprion when form interracts with that controler?is working on a reply...