Joomla Weblinks URL Structure Guide

The URL structure for the Weblinks extension has changed from Joomla 1.5 to Joomla 2.5. If you are having issues this article will help.

Steven Johnson
by | Posted: February 8, 2012 | Updated: June 11, 2013
Blog Post Image 734px Wide

I first became aware of this when I noticed that sh404 was not correctly rewriting the URLs.

This article is a place for my notes, so I can figure out what is going on hopefully help a few other people.

Here Are My Configurations In sh404SEF:

Configuration > Main -- Set to All Lowercase

Configuration > Advanced -- mod_rewrite option, set to  www/non-www redirect

Extension Configuration > Joomla -- use Title and Category Alias, show last category, show 2 categories in category links, do NOT insert Table or blog name.

JCE Generated Link VS Smart Searh Result Page Link

Weblinks Component Page - index.php?option=com_weblinks&task=weblink.go&id=21&Itemid=120
Smart Search Result page - index.php?option=com_weblinks&Itemid=120&catid=17&id=21&lang=en&view=weblink

JCE Created Link - index.php?option=com_weblinks&view=weblink&id=21:zipcloud&catid=17:coupons
Inside of SmartSeach Backend - index.php?option=com_weblinks&view=weblink&id=21

Weblinks Component Page - index.php?option=com_weblinks&Itemid=120&task=weblink.go&id=21
Smart Search Result Page - index.php?option=com_weblinks&Itemid=120&catid=17&id=21&lang=en&view=weblink

Forum Post On The Subject

http://anything-digital.com/forum/extension/sh404sef/3135-weblinks-not-using-sef-urls.html

Links Written Using Joomla SEF vs sh404SEF

Weblink Component Page Joomla SEF - weblinks?task=weblink.go&id=21
Weblink Component Page sh404SEF - coupons/zipcloud.html

Smart Search Result Page Joomla SEF - weblinks/17-coupons/21?lang=en
Smart Search Result Page sh404SEF - index.php?option=com_weblinks&Itemid=120&catid=17&id=21&lang=en&view=weblink

JCE Created Link Joomla SEF - component/weblinks/weblink/17-coupons/21-zipcloud
JCE Created Link sh404SEF - com_weblinks&view=weblink&id=21:zipcloud&catid=17:coupons

Smart Search Backend Joomla SEF - component/weblinks/weblink/21
Smart Search Backend sh404SEF - com_weblinks&view=weblink&id=21

Links From Joomla 3.0 Weblinks

Link Created From Component Output - index.php?option=com_weblinks&task=weblink.go&id=1&Itemid=123
Link From Smart Search Output - index.php?option=com_weblinks&view=weblink&id=1:test&catid=6:uncategorised

In 3.0 it appears that the main difference is

  • view=weblink vs task=weblink.go

The problem arrises when you see links generated in different ways.

Method

What I did: install Joomla 2.5 or 3.0, create a weblink, then create a menu item to the weblink category and you will see your created weblink. Now create a smart search menu link, then search for the create weblink, you will see a different URL format for the created weblink.

I feel that all weblink URLs should be consistent and use either task=weblink.go or view=weblink in the URL

One good reason for consistency is so that the URLs are all the same and Search Engines will not see them as duplicate content and the SEF extensions will rewrite them consistently. I think the task=weblink.go is the Joomla 1.5 method of doing things.

Steven Johnson

Steven is a Joomla web developer and worked with Joomla since the Mambo days. He has built websites for startup businesses all the way to for Fortune 500 companies. A graduate of Georgia Tech in Chemical Engineering, he now happily spends his time building websites and reviewing all types of technology.