Dnn.Platform icon indicating copy to clipboard operation
Dnn.Platform copied to clipboard

MVC DNN API Url.Action returns wrong url

Open mikecy opened this issue 2 years ago • 2 comments
trafficstars

Description of bug

On an MVC module when you load partialview from javascript the Url.Action returns wrong url. Instead of the current page it changes the Url path to the homepage with the parameters. For some reason in the ModuleContext is not passed correctly

Steps to reproduce

List the precise steps to reproduce the bug: var url = dnn.getVar("sf_siteRoot", "/") + "DesktopModules/MVC/ClusterManager/Students/PartialStudents"; $.ajax({ type: "GET", cache: false, url: url, data: { CompanyID:@Model.CompanyId, pageSize: $("#pageSize").val(), pageIndex: pindex, SchoolYearID: $("#schoolyear").val() ,ItemID: @Model.ItemId, searchTerm: $("#txtSearch").val() }, headers: { "ModuleId": @Dnn.ModuleContext.ModuleId, "TabId": @Dnn.ModuleContext.TabId, "RequestVerificationToken": $("input[name='__RequestVerificationToken']").val() } }) .done(function (data) { model.empty().append(data); });

Affected version

  • [*] 10.00.00 alpha build
  • [*] 09.11.00 release candidate
  • [*] 09.10.02 release candidate
  • [*] 09.10.01 latest supported release

Affected browser

  • [*] Chrome
  • [*] Firefox
  • [*] Safari
  • [*] Internet Explorer 11
  • [*] Microsoft Edge (Classic)
  • [*] Microsoft Edge Chromium

mikecy avatar Dec 28 '22 07:12 mikecy

I don't use MVC much, can anyone help on this one ?

valadas avatar Jan 18 '23 23:01 valadas

We have detected this issue has not had any activity during the last 90 days. That could mean this issue is no longer relevant and/or nobody has found the necessary time to address the issue. We are trying to keep the list of open issues limited to those issues that are relevant to the majority and to close the ones that have become 'stale' (inactive). If no further activity is detected within the next 14 days, the issue will be closed automatically. If new comments are are posted and/or a solution (pull request) is submitted for review that references this issue, the issue will not be closed. Closed issues can be reopened at any time in the future. Please remember those participating in this open source project are volunteers trying to help others and creating a better DNN Platform for all. Thank you for your continued involvement and contributions!

stale[bot] avatar Jun 18 '23 07:06 stale[bot]