[Mono-aspnet-list] MVC2 changes application directory randomly

Andrus kobruleht2 at hot.ee
Tue May 24 07:15:14 EDT 2011


http://mysite.com/store  contains MVC2 application.

Sometimes after clicking menu link in main page

http://mysite.com/store/Store/Browse?category=1

this link is replaced in retrived page with link

http://mysite.com/store/Store/Browse/Store/Browse?category=1

(Links are generated using ActionLink( "Browse", "Store"))

Also in this case  ResolveURL("~/") starts to return store/Store/Browse , 
not /store
In looks like application root directory is changed to /store/Store/Browse 
automatically. /store/Store/Browse is then prepended to ebery link generated 
by ActionLink.

How to fix this so that correct links are generated ?

Mono 2.10.1 , centos , mod_mono

Andrus. 



More information about the Mono-aspnet-list mailing list