Poll: How many people were affected by the change to use Relative URLs, or the regression in RouteURl?

Rate It (1)

Last post 01-30-2009 8:15 PM by levib. 15 replies.

Sort Posts:

  • Poll: How many people were affected by the change to use Relative URLs, or the regression in RouteURl?

    01-28-2009, 4:27 PM
    • Contributor
      5,592 point Contributor
    • Haacked
    • Member since 09-17-2003, 2:43 PM
    • Posts 384
    • AspNetTeam

    In the RC, we changed our helpers which generate URLs to generat relative paths instead of absolute paths. We've noticed this has broken a lot of scenarios we did not anticipate, such as certain Ajax partial view scenarios.

    Also in the RC, we made a change to RouteUrl and RouteLink that has introduced a regression bug in some scenarios. If this has affected you, let me know. We're trying to get a sense of how many people are affected by these regressions. 

    We are definitely looking into this and considering several options. It will help us to know how many people are affected.

    Phil Haack (http://haacked.com/)
    Senior Program Manager, Microsoft

    What wouldn’t you do for a Klondike bar?
    Filed under:
  • Re: Poll: How many people were affected by the change to generating Relative Urls?

    01-28-2009, 5:17 PM
    • Member
      142 point Member
    • Tijn
    • Member since 06-15-2002, 6:25 AM
    • Posts 31

    Yes, I'm experiencing this issue. When rendering partial views, the form actions sometimes aren't correct and also, Html.ActionLink() and Url.Content() don't behave properly.
    Especially when the controller executes its default action (Index) that doesn't show up in the address bar, things go wrong with the partial request.

    This is a 100% showstopper (unless there is a hidden switch somewhere that turns off relative urls :)).

  • Re: Poll: How many people were affected by the change to use Relative URLs, or the regression in RouteURl?

    01-28-2009, 5:37 PM
    • Member
      30 point Member
    • Nik Coughlin
    • Member since 09-24-2008, 5:46 AM
    • Auckland, New Zealand
    • Posts 15

    After reading all the posts here lately I'm too scared to change to RC1.  If I get time I'll try upgrading my current project and see what happens

  • Re: Poll: How many people were affected by the change to use Relative URLs, or the regression in RouteURl?

    01-28-2009, 5:45 PM
    • Member
      2 point Member
    • JeremyBrown
    • Member since 01-28-2009, 10:31 PM
    • Posts 1

    I had an issue where the relative URL from BeginForm caused a problem using the jQuery ajaxForm plugin. I was able to work around it by providing the URL as an option in the plugin, but this defeats the purpose for using BeginFrom.

  • Re: Poll: How many people were affected by the change to use Relative URLs, or the regression in RouteURl?

    01-28-2009, 5:57 PM

    I have a small/medium size project (6 controllers 17 views) and update to RC1 in about 2 hours with no major issues.  A few of the changes like SetAttemptedValue and BindModel took me a few minutes to figure out but seem to be working now.  I didn't run into the issues you described.  I guess I should note that I am not using AJAX anywhere in this app yet.

  • Re: Poll: How many people were affected by the change to use Relative URLs, or the regression in RouteURl?

    01-28-2009, 6:14 PM
    • Member
      281 point Member
    • molesinski
    • Member since 01-28-2009, 8:44 AM
    • Posts 56

    Sadly recent url generation code broke most of ajax calls in the project I am working on, as most of them were called on different controller, because they originated from controls placed within master pages.

    The good news is that every single dynamic url I generated was from my own extension methods, as I like to actually encode urls on the way for xhtml confirmance, if i inject them directly into href attribute. So solution was to pass resulting url strings via additional method which converted them back to absolute in case incoming request was async Ajax request.

    The bad news is that now I wont ever be able to use HtmlHelper extensions for generation elements which include urls in views I am aware that could be rendered asynchronously, so in general all views as otherwise it would cause total mess, leaving me only with my own UrlHelper extensions.

    Don't forget to click "Mark as Answer" on the post(s) that helped you.
  • Re: Poll: How many people were affected by the change to use Relative URLs, or the regression in RouteURl?

    01-29-2009, 9:04 AM
    • Member
      10 point Member
    • visualhint
    • Member since 06-02-2007, 1:01 PM
    • Posts 25
    Same here. I get empty strings when calling RouteUrl.
  • Re: Poll: How many people were affected by the change to use Relative URLs, or the regression in RouteURl?

    01-29-2009, 11:43 AM
    • Member
      2 point Member
    • pjnola
    • Member since 12-31-2007, 4:15 AM
    • Posts 1

    Yep, killed all of the views in my project.  I am using Ajax w/partial views (partial page replacement).

  • Re: Poll: How many people were affected by the change to use Relative URLs, or the regression in RouteURl?

    01-29-2009, 1:56 PM
    • Member
      2 point Member
    • W4IK
    • Member since 08-12-2006, 2:10 AM
    • Posts 1

    Definitely got me.

    See my post over on StackOverflow  http://stackoverflow.com/questions/491704/asp-net-mvc-routing-issue

     

    It ain't a mistake till ya can't fix it.
  • Re: Poll: How many people were affected by the change to use Relative URLs, or the regression in RouteURl?

    01-29-2009, 11:24 PM
    • Member
      2 point Member
    • WinstonPang
    • Member since 05-08-2007, 11:38 AM
    • Posts 4

     Yep, I too am impacted from this change, and we greatly need it to be fixed, as we are halfway through our project and it is critical to have this working. My problem is addressed here:

     

    http://forums.asp.net/p/1377815/2902614.aspx#2902614

     

    Thanks.

     Regards,

     Winston

  • Re: Poll: How many people were affected by the change to use Relative URLs, or the regression in RouteURl?

    01-29-2009, 11:39 PM
    • Member
      162 point Member
    • mrfleck
    • Member since 12-19-2007, 2:12 AM
    • Posts 106

    Ditto

  • Re: Poll: How many people were affected by the change to use Relative URLs, or the regression in RouteURl?

    01-29-2009, 11:52 PM
    • Member
      587 point Member
    • MikeBosch
    • Member since 02-13-2007, 3:17 AM
    • Miami, FL
    • Posts 127
    BOOM! Bye bye all my links. I use RouteLink extensively because I read somewhere that it was better for performance. Unfortunately, performance is no longer a factor since I can't leave the home page. :-(
    “It is not the strongest of the species that survives, nor the most intelligent. It is the one that is the most adaptable to change.”

    http://weblogs.asp.net/mikebosch

    *** Please MARK this post as ANSWERED, if you find it helpful) ***
  • Re: Poll: How many people were affected by the change to use Relative URLs, or the regression in RouteURl?

    01-30-2009, 1:05 AM

     Hi Phil, This is a problem for me.

     <%= Url.Action<ReportController>(controller => controller.VehicleLogReport(null)) %>

    writes /Report/VehicleLogReport and is fine.

     <%= Url.Action("VehicleLogReport", "Report") %>

     writes VehicleLogReport and breaks my site. 

     As you suggested this is an ajax partial view scenario.

     

    Liam McLennan
    Eclipse Web Solutions
    liam@eclipsewebsolutions.com.au
    http://www.eclipsewebsolutions.com.au
  • Re: Poll: How many people were affected by the change to use Relative URLs, or the regression in RouteURl?

    01-30-2009, 1:14 AM
    • Participant
      1,274 point Participant
    • mhawley
    • Member since 08-28-2002, 10:04 AM
    • Posts 230

    They released a RC Refresh tonight which rolls back the changes to relative URLs. You should grab that and you guys should be set. Same download link as before.

    Matt Hawley
  • Re: Poll: How many people were affected by the change to use Relative URLs, or the regression in RouteURl?

    01-30-2009, 2:26 AM
    • Contributor
      5,592 point Contributor
    • Haacked
    • Member since 09-17-2003, 2:43 PM
    • Posts 384
    • AspNetTeam

    Note, at the moment, the refresh MSI hasn't propagated to all download servers. So you might inadverdently download the old one.

    Phil Haack (http://haacked.com/)
    Senior Program Manager, Microsoft

    What wouldn’t you do for a Klondike bar?
Page 1 of 2 (16 items) 1 2 Next >