+1-888-365-2779
Try Now
More in this section

Forums / General Discussions / Response redirect

Response redirect

7 posts, 0 answered
  1. Henriette
    Henriette avatar
    41 posts
    Registered:
    20 Aug 2009
    20 Mar 2013
    Link to this post
    Hallo all

    I'am currently expierience that a simple response redirect from at webusercontrol in Sitefinity redirects to a wrong url containing %2f and not starting at the root of the site

    This Response.Redirect("~/vaerdiboksen/opret-vaerdi") (this url is valid in Sitefinity)
    Returns this url: profil/%2fvaerdiboksen%2fopret-vaerdi (which is not valid)

    Just wondering what I doing wrong here.
    Thanks in advance if anybody have some input :-)
    Kind regards
    Henrik Stensgaard
  2. Henriette
    Henriette avatar
    41 posts
    Registered:
    20 Aug 2009
    20 Mar 2013 in reply to Henriette
    Link to this post
    Hi again
    Sorry for this. I found the error in the template hosting the webusercontrol.
  3. Sharlyne
    Sharlyne avatar
    30 posts
    Registered:
    14 Aug 2008
    18 Jun 2013 in reply to Henriette
    Link to this post
    Hi Henrik. I'm experiencing the same issue but haven't found a solution. Can I ask what you did to resolve yours? I'm getting %2f on some response.redirects but not others.
  4. Stefani Tacheva
    Stefani Tacheva avatar
    718 posts
    Registered:
    21 Nov 2016
    20 Jun 2013
    Link to this post
    Hello,

    Would it be possible for you to review the template (masterpage) where the response is redirected? It would be nice if you showed us some sample code on how you are handling the link. Furthermore, could you please try to reproduce the error on different browser and inform us of your findings? I saw that you have a support ticket opened. You could send us your project files there with some additional information in order to investigate the problem locally.

    Regards,
    Stefani Tacheva
    Telerik
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  5. Henriette
    Henriette avatar
    41 posts
    Registered:
    20 Aug 2009
    20 Jun 2013 in reply to Stefani Tacheva
    Link to this post
    Hi 
    I will try to find the solution in our code. I will get back :-)

    Kind regards
    Henrik
  6. Sharlyne
    Sharlyne avatar
    30 posts
    Registered:
    14 Aug 2008
    21 Jun 2013 in reply to Henriette
    Link to this post
    Stefani, yes i have a ticket open and just sent the files over for review, but I also wanted to see if there were other resources for me to try and correct the issue. What would I be looking for exactly in the template? I don't think it would be there because as I mentioned for me, it works on some but not others. So meaning, i click on a button and the submit.click has 1 line, response.redirect(url). on that url page, it's  a custom control that basically checks to see if you are logged into the system. if you are it lets you view the page (url reads: http://domain.com/2%fmarketplace2%fcheck-out), if not it creates a session cookie and takes you to the login page so you can login. After logging in, it looks at the cookie and takes you back to the page which then the url reads http://domain.com/marketplace/check-out.

    Henrik, thank you in advance!
  7. Stefani Tacheva
    Stefani Tacheva avatar
    718 posts
    Registered:
    21 Nov 2016
    25 Jun 2013
    Link to this post
    Hello,

    Please send us a backup of your database in order to run the project locally and inspect the behavior. Henrik, thank you for helping and sharing solutions.

    Regards,
    Stefani Tacheva
    Telerik
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
7 posts, 0 answered