c# - handling media files in the URL -
based on condition m redirecting user login page , specifying return url below
context.response.redirect("~/login.aspx?returl=" + httputility.urlencode(context.request.url.tostring()));
a setting in webconfig
<add key="umbracousedirectoryurls" value="false"/>
adds ".aspx" extension url when m requesting media files pdf document return url becomes returl=http%3a%2f%2flocal.knowledge.scot.nhs.uk%2fcalderdale%2f1.pdf.aspx
how can possibly exclude media files in above setting? thanks
i don't think umbracousedirectoryurls that's causing problem - think problem because umbraco doesn't know how handle pdfs properly. looks umbraco seeing pdf content rather media, why appending .aspx. think if site handling pdfs media solve issue.
there guidance here on adding pdf media type (http://our.umbraco.org/forum/developers/extending-umbraco/13593-pdf-document-media-type)
Comments
Post a Comment