Consider the following code:
string srcUrl = Request.Params["sourceUrl"]; SPList list = SPContext.Current.Web.GetList(srcUrl);
with MDS Feature disabled:
string srcUrl = "http://localhost/Freigegebene%20Dokumente/Forms/AllItems.aspx"
code is executed fine
with MDS Feature enabled:
string srcUrl = "http://localhost/_layouts/15/start.aspx#/Freigegebene%20Dokumente/Forms/AllItems.aspx"
FileNotFoundException occurs in the
Is there another method of getting the list? Or a workaround when MDS is enabled?