So, i have this problem with urls which was bothering me for quite a while for example now i create iframe with jquery and i get my html the way i want:
<iframe class="iframe" src="user/upload_image" name="iframeTarget">
And my current url is: user/messages/kazkoks but for some reason when iframe loads i get error which tells me that url user/messages/user/upload_image was not found.
So for some reason kohana adds me user/messages when i don’t need it, how can i solve it?
As your current URL points relative to your
user/messagesdirectory, I think you should add a slash / in front of your url.So your HTML would become:
EDIT: Another variant using the
urlhelper:EDIT 2: Yet another variant using JS