From PATH_INFO to REQUEST_PATH in Sinatra helper #253

Closed
wants to merge 1 commit into
from

Projects

None yet

2 participants

@kot-begemot

While developing Pardino application and dealing with admin-module I faced a problem, that the Kaminati paginate function, return paths like /:resource, while it should return something like /admin/:resource.
Padrino environment contains two things PATH_INFO and REQUEST_PATH. I believe PATH_INFO contains path relative to Padrino::Application instance, while instance may have its own mapping, and REQUEST_PATH contains url relative path. So I suppose, REQUEST_PATH is more appropriate there.

@yuki24
Member
yuki24 commented Jul 1, 2012

I think this is the same bug discussed on #251 so I'm closing this isssue.

@yuki24 yuki24 closed this Jul 1, 2012
@kot-begemot

Ups, seems like I miss it. Thanx for quick reply anyway =)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment