php - Relative path with last restful parameter -
It seems that this should be a simple fix.
I have a sluggish PHP backend and setup where I have the URL:
And The photo controller will be the same for both and some parts of the front are shared for both Are there. My question is: If I am at this URL: and I href: This is taking me to What do you want: site.com/profile/100/photos/
Site.com/me/photos
site.com/profile/100
site.com/profile/100/photos instead of
site.com/profile/photos . How do I add the URL after 100?
$ url = "http: / $ _ Server [HTTP_HOST] $ _SERVER [REQUEST_URI] / photo ";
Comments
Post a Comment