Page Not Found Issue fixed after using _spPageContextInfo.webServerRelativeUrl
I was working with showModalDialog function and everything working fine, the issue came with the code when I deployed the code on other servers(IT, UAT...). The URL was causing an issue and because of this I was getting "Page not found" message when function "showModeldailog" was called from the JS file. The location of the Page (Inside the layout folder). The Problem: We have a different-2 sever and each server has its own site collection with diff URL and Dev System In my development server I had created the URL without manage path.(http:severname/_layouts/15/testProj/MyPage.aspx) and it is working fine in my Development server. Other Servers Other servers like (IT, UAT & PROD) the URL was causing an issue.The URL : '/_layouts/15/testProj/MyPage.aspx'. I used below for URL creation. (" Page Not Found " issue cause on these servers) URL creation method on Dev System function ShowModelDialog(listid, itemid) { var fullUrl