If I’m on page https://www.example.com/test?page=123 how can I get this FULL PATH (proto + host + URI + query ) with Kohana?
I’ve tried Request::uri(), Request::url(): they don’t give me full address string. Only URI part.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There is a URL helper which contains methods which will achieve your goal…
That should work for the host, if you tack it onto the front of your
Request::uri(). If you need thehttp://on the front, addtrueas the first parameter. Then there’s…which you can use to get the query string (and add additional parameters if necessary).
So something like…
should produce the full URL.