Welcome Guest, Not a member yet? Register   Sign In
Trailing slash and links
#3

(This post was last modified: 04-08-2015, 11:08 AM by CroNiX.)

Or if you're just adding additional segments to the CURRENT url (using url helper):
PHP Code:
<a href="<?php echo current_url(); ?>/some_link">Link</a

If you were on:
http://yoursite.com/some_controller
Then the anchor would link to:
http://yoursite.com/some_controller/some_link

If you were on:
http://yoursite.com/some_controller/some...am1/param2
Then the anchor would link to:
http://yoursite.com/some_controller/some.../some_link
Reply


Messages In This Thread
Trailing slash and links - by agriz - 04-08-2015, 12:27 AM
RE: Trailing slash and links - by davidgv88 - 04-08-2015, 01:29 AM
RE: Trailing slash and links - by CroNiX - 04-08-2015, 11:07 AM
RE: Trailing slash and links - by agriz - 04-08-2015, 11:09 AM



Theme © iAndrew 2016 - Forum software by © MyBB