Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Mehtab Malik 21 posts 70 karma points
    May 02, 2013 @ 17:27
    Mehtab Malik
    0

    how to handle media files in the URL

    Based on a certain condition I m redirecting user to login page and specifying the return url as 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 to the url but when I m requesting any media files like a pdf document the return url becomesretUrl=http%3a%2f%2flocal.knowledge.scot.nhs.uk%2fcalderdale%2f1.pdf.aspx

    how can we possibly exclude media files in the above setting? thanks

  • Rich Green 2246 posts 4008 karma points
    May 02, 2013 @ 18:50
    Rich Green
    0

    Hey,

    I'm not sure I understand your question, I don't think Umbraco would put a .aspx on the end of a media item?

    Rich

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies