Hello (MonoRail people, see below my answer),
I tested your scenario (trunk) and it works for me:
public void redirectPlease()
{
// this works
Redirect("", "login", "index");
}
public void redirectPlease2()
{
// this will fail.
Context.UnderlyingContext.Response.Redirect("/login/index");
}
Are you doing no. 1 and not no. 2?
Also, what do you mean with subdomain? Do you mean "I want the application
path to get prepended"?
******
By the way; mailing list, I've been fiddling a bit with MonoRail, improving
the Routing to work with "/", "/default.aspx", among other things: { renamed
routingmoduleex to routing, added configuration interface (I didn't like the
other), added "default" routes which I consider to be the basics of
MonoRail, thought a bit about the bug in default routes, but haven't fixed
it yet }. I was wondering if I could get access to a branch on the svn till
we can integrate it? This would be the follow up to my mail which Ken
responded (without answering) to, about three weeks ago. The reason I'm not
doing a patch <- public interfaces need work, writing tests need a bit of
work.
It also includes a lot of comments/doc since I tend to add those, like,
correcting spelling mistakes and such ;).
Cheers,
Henke
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Kcube
Sent: den 9 maj 2009 12:55
To: Castle Project Users
Subject: Routing not working when deployed to server
The project is working fine locally . But when i deploy it to production
server, its not working.
I have deployed the appliation to a subdomain 'myapplication' under
www.abdc.com.
local path = www.localhost/login/user.castle production server
www.abdc.com/myapplicaiton/login/user.castle
The issue is with url redirect.
when i redirect to redirect(login/user.castle); it goes to
www.abdc.com/login/user.castle insted of
www.abdc.com/myapplicaiton/login/user.castle
how can i achieve it? I want the subdomain get appended
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Castle Project Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/castle-project-users?hl=en
-~----------~----~----~----~------~----~------~--~---