Jarrod Nettles
Jarrod Nettles

Reputation: 6283

Generating Component SEF URLs in Joomla

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?

Upvotes: 0

Views: 1004

Answers (2)

Will Mavis
Will Mavis

Reputation: 393

I would turn off SEF URLs temporarily and get the non-SEF version of the link you want. Compare that will the URL you are using and see what is different/missing.

Upvotes: 0

ircmaxell
ircmaxell

Reputation: 165191

Check your Itemid GET parameter in the URL. My guess is that it's not set in the url used in emails...

Upvotes: 1

Related Questions