I am having trouble redirecting to any HTML file.
I added the HTML page as the name of the webresource "new_My_ProductList" in the solution.
I created the "Go to my product" button in the ribbon and set the following JS file function for it. He will open the window.
function RedirectToLowStockList() {
window.open('WebResources/new_My_ProductList', '_blank', 'scrollbars=1,menubar=no,height=500,width=1000,resizable=1,toolbar=no,status=1');
}
The above function works perfectly whenever the URL looks like this: " https://mydomain.crm.dynamics.com/WebResources/new_My_ProductList "
But sometimes it generates the wrong url and shows Error 404
Here is an example of an invalid URL:
1- https://mydomain.crm.dynamics.com/_root/WebResources/new_My_ProductList
2- https://mydomain.crm.dynamics.com/_form/WebResources/new_My_ProductList
, URL 2 "_root" "_form".
- ? , - ?