Orckestra C1 upgrading from V5.6 to V6.0 broke MVCFunctions

81 views Asked by At

Our Orckestra C1 5.6 has been working wonderfully with an implementation of MVCFunctions. After upgrading a test site to V6.0 we noticed the MVC Functions don't seem to be working the same.

An example is a MVCFunction that is handling a form rendering in a page and post back. When I do a view source, the action URL that is resulting from the rendering is very different and the post back fails.

Original MVC in view

@using (Html.BeginForm("Login", "Secure", new {ReturnUrl = ViewBag.ReturnUrl}, FormMethod.Post, new {  @class = "form-horizontal"}))

V5.6 output

<form id="loginForm" action="mydomain.com/Login" class="form-horizontal" method="post" novalidate="novalidate">

V6.0 output

<form id="loginForm" action="mydomain.com/Composite/api/Router?action=Login&amp;controller=Secure" class="form-horizontal" method="post" novalidate="novalidate">

When doing the form post in V6 it will just result in a blank page. Can you think of why the action URL was expanded to include a "/Composite/api/Router" as part of the path?

UPDATE: Issues was fixed by the Orckestra team https://github.com/Orckestra/C1-CMS-Foundation/issues/403

2

There are 2 answers

0
Pauli Østerø On

Unfortunately not an answer to solve your problem, but the problem arises from version 6.0 adding a new WAMP router which adds its route to the global RouteTable and affects MVC route resolving.

I would suggest you to open an issue on the GitHub Issue tracker.

0
NerdBrick On

Issue was resolved by Orckestra team on GitHub and will be in the next release.

https://github.com/Orckestra/C1-CMS-Foundation/issues/403