• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Trailing slash and links

#3
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

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.