tags:

views:

1080

answers:

2
+2  A: 

You should just work with normal url's in your code. when you turn on SEF joomla! will automaticly convert all links you create to SEF urls and when a request comes in it will revert them back to regular url's for you...

Nicky De Maeyer
+1  A: 

It's a little convoluted, but the proper way to link to SEF URLs is to use the original, non-SEF link. You will need:

  • The ID of the article
  • The Itemid of the menu item for your section (e.g. the menu item linking to Article Blog layout, etc)

Then you just link to:

index.php?option=com_content&view=article&id=42&Itemid=3

Where 42 is the article ID and 3 is the menu ID.Your link will then look something like:

/section-alias/42-the-article-alias

If you miss off the Itemid your link will look like this (I think):

/components/content/42-the-article-alias
DisgruntledGoat