voltron wrote:
> I just tested this again, and I noticed that it does not work as
> expected. Using Bens example:
> 
> map.connect('Home/:action', controller='home', action='index')
> 
> If I click repeatedly on my "home" link, the URL shown in the browser
> changes also, and this ends up in a 404. Instead of calling up the
> same link it calls:
> 
> http://localhost:5000/home/home/home/
> 
> adding a home for every time I click on the link. Could you tell me
> what I´m doing wrong Ben?

I don't know.... because I don't know how you're creating the link. What
does your page that creates this link look like? I'm guessing you're
using the link creator function improperly so far.

Here's how you'd make that link:
h.url_for(controller='/home', action='index')

Also, I'd suggest changing 'Home/:action' to 'home/:action'. I haven't
done tests for case sensitive links, so it wouldn't surprise me if they
didn't work as you might expect. I'll file a ticket to look into that.

HTH,
Ben

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" 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/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to