Generating Component SEF URLs in Joomla

Posted by Jarrod on Stack Overflow See other posts from Stack Overflow or by Jarrod
Published on 2010-06-17T19:38:52Z Indexed on 2010/06/17 19:43 UTC
Read the original article Hit count: 331

Filed under:
|
|

I have a custom Joomla component and a router for building my SEF URL's for use within the site, and everything is usually shiny - internally, all of my links look and act fantastic.

I recently route a controller action that sends a list of links through email, and I've noticed that my URLs are coming out.... funky - hopefully someone can tell me why.

Usually, my router generates an internal link that looks like this:

http://localhost/Registry/calendar/265889635/Some-Long-Boring-Event

However, when I send an email and preparing the same URL through the same router I get:

http://localhost/Registry/Registry/component/calendar/569555803/Some-Long-Boring-Event

Has anybody run into this issue before?

© Stack Overflow or respective owner

Related posts about php

Related posts about joomla