[FIXED] [1.0] Autoload Url does not resolve virtual paths

  1. #1

    [FIXED] [1.0] Autoload Url does not resolve virtual paths

    Hi,

    I use MVC and I can use the tilde in url of direct events, e.g.:

    <DirectEvents>
    <Click Url="~/Auth/LogOut">
    </Click>
    </DirectEvents>
    and e.g. in Url attribute of FormPanel and it all resolves well. Unfortunately, I can't do that in Url attribute of AutoLoad element. I'm not sure at the moment about HttpProxy, but I think it might not resolve urls too.

    It is particularly a problem in MVC application because if my application address is e.g. http://localhost/MyApp, then e.g. /Home/Data resolves to http://localhost/Home/Data instead of http://localhost/MyApp/Home/Data. The problem can also be seen in the Ext.NET MVC application e.g. when I run the site in IIS and set Project URL e.g. to http://localhost/Ext.Net.MVC.

    Regards,
    Tadeusz
  2. #2

    RE: [FIXED] [1.0] Autoload Url does not resolve virtual paths

    Hi,

    What result do you have? Does the url is changed for you? Or it renders without changes (with '~' symbol)?
  3. #3

    RE: [FIXED] [1.0] Autoload Url does not resolve virtual paths

    Hi,

    It was rendering without changes (with the ~ symbol) - I could see that in the page's source. I have continued with the development though and now it seems to be working well (it properly resolves virtual paths). I haven't changed that part of the application much and I have no clue why it was wrong before. If I stumble across it again I will post a sample.

    Thanks,
    Tadeusz
  4. #4

    RE: [FIXED] [1.0] Autoload Url does not resolve virtual paths

    Hi,

    Yes, I made a few tests and it works fine for me (AutoLoad). I'll check HttpProxy url
  5. #5

    RE: [FIXED] [1.0] Autoload Url does not resolve virtual paths

    Hi,

    HttpProxy urls (RestAPI and Url property) properties should correct resolve own values now
    Please update from SVN
  6. #6

    RE: [FIXED] [1.0] Autoload Url does not resolve virtual paths

    Thank you.
  7. #7

    RE: [FIXED] [1.0] Autoload Url does not resolve virtual paths

    Hi,

    I need to revisit this bug as I have been able to replicate the problem with Panel not resolving the ~ character in the AutoLoad.Url attribute.

    The steps are as follows:
    1. start the sample (it should create http://localhost/TestMvcApplication virtual directory under IIS, which matters in this case). Don't mind the extra code around the sample, the important part is in Home/Index.aspx.
    2. When you access the application with this address http://localhost/TestMvcApplication/ (slash at the end), you should receive The resource cannot be found error for each tab.
    3. When you access the application with this address http://localhost/TestMvcApplication (no slash at the end) you should receive Not Found error for each tab.
    4. When you access the application with this address http://localhost/TestMvcApplication/Default.aspx everything works well.

    For the first two errors you can see (e.g. on FireBug Net tab) that the application is making requests with ~ in the address which means it hasn't been resolved.

    Regards,
    Tadeusz
  8. #8

    RE: [FIXED] [1.0] Autoload Url does not resolve virtual paths

    Hi,

    Fixed. Please update from SVN
  9. #9

    RE: [FIXED] [1.0] Autoload Url does not resolve virtual paths

    Works great - thanks.

Similar Threads

  1. Replies: 3
    Last Post: May 09, 2012, 1:51 PM
  2. Ext.net with MVC and Virtual Path
    By inaltec in forum 1.x Help
    Replies: 2
    Last Post: Jan 31, 2012, 9:16 PM
  3. [FIXED] [1.0RC2] - Adapter paths are wrong
    By scott.moore in forum Bugs
    Replies: 2
    Last Post: Dec 06, 2010, 3:23 PM

Posting Permissions