Canonical Custom URL Question

  • Posts: 129
  • Thank you received: 6
  • Hikaauction Standard Hikamarket Multivendor Hikashop Business
1 week 2 days ago #372779

-- HikaShop version -- : 6.5.2
-- Joomla version -- : 6
-- PHP version -- : 8.4
-- Browser(s) name and version -- : all

Dear Team,

On my site, Joomla articles for categories and subcategories work correctly using the structure mysite.com/category/subcategory.

However, when I create an auction with the canonical URL mysite.com/category/subcategory/item, it does not work.

Our HikaShop SEF settings are configured as shown here: prnt.sc/us6MifZAIaCF

How can we resolve this issue, or what is the recommended workaround?

Thank you

Please Log in or Create an account to join the conversation.

  • Posts: 85986
  • Thank you received: 14149
  • MODERATOR
1 week 2 days ago #372787

Hi,

On your live auctions listing the link to that car already points to /cars-live-auctions/makes/jaguar/jaguar15 (because you set that as the item's Canonical URL and you have "Force canonical URLs on listings" on), but opening it returns a 404. That is the key point: the Canonical URL field only changes the address displayed in the listing and the <link rel="canonical"> SEO tag, it does not create a working route, so the address itself leads nowhere.

Why it 404s on your site: /cars-live-auctions is your HikaShop live auctions listing, but /cars-live-auctions/makes and /cars-live-auctions/makes/jaguar are Joomla content pages (the "Makes" page and the "Jaguar 2026" article). The URL path is decided by your Joomla menu tree, and there is simply no menu item or route below the Jaguar article for jaguar15, so nothing resolves it.

The clean way to get a working URL at that exact path is to create the menu item for it. A couple of options:

1) Create a HikaShop "Product page" menu item for that auction and place it, in the menu tree, as a child of your "Jaguar 2026" article menu item, then set the menu item alias to jaguar15. Joomla will then own /cars-live-auctions/makes/jaguar/jaguar15 as a real menu item that displays the product, so it opens correctly. This keeps your Jaguar article as it is. The only thing to keep in mind is that this is one menu item per auction, which is fine for a few highlighted cars but heavy if you want it for every auction.

2) Or create a menu item alias (or a URL menu item) at that same spot under the Jaguar article, pointing to the auction's real product page URL. Same resulting address, it just forwards to the existing product page instead of being a second product menu item.

3) If you want this automatically for every auction without creating a menu item each time, the alternative is to build "Makes" and "Jaguar" as HikaShop categories rather than Joomla articles, and assign the auctions to them. HikaShop then generates the nested URL for every item on its own, and with "Remove products and categories id in URLs" set to Yes it produces exactly /cars-live-auctions/makes/jaguar/jaguar15. The trade-off is that those manufacturer pages become HikaShop category pages instead of Joomla articles, since a given path can only be owned by one component.

In all cases, do not rely on the Canonical URL field for this, it is an SEO pointer, not a routing or redirect tool.

The following user(s) said Thank You: lucad

Please Log in or Create an account to join the conversation.

  • Posts: 129
  • Thank you received: 6
  • Hikaauction Standard Hikamarket Multivendor Hikashop Business
1 week 20 hours ago #372837

Thank you Nicolas,

Option number 3, where manufacturer pages become HikaShop category pages instead of Joomla articles to automatically create a menu item each time is the perfect solution (although we will need to update all the pages)

However, there is one final issue. 
When creating a manufacturer page with a specific image see screenshot
that same image is repeated on the auction page see auction screenshot

Could you please provide a solution to resolve this particular issue?

Thank you

Last edit: 1 week 16 hours ago by lucad.

Please Log in or Create an account to join the conversation.

  • Posts: 85986
  • Thank you received: 14149
  • MODERATOR
1 week 15 hours ago #372838

Hi,

Glad option 3 fits your case.

The repeated image comes from either the menu item or SP page builder.
Either way, HikaShop is not involved.
I suppose that because you chose to not have a specific menu item for each, you're on the same menu item for both pages. And thus Joomla / SP page builder displays the same image header because they don't have any option to segregate based on the pages of the menu item.
In that case, the solution would be to have different menu items as I was suggesting in point 1.
Another option would be to display that area as a custom HTML module, and use something like advanced modules manager pro to restrict the module display based on the page type (Advanced modules manager pro has specific options for HikaShop so that it knows the page types of HikaShop for each menu items).

The following user(s) said Thank You: lucad

Please Log in or Create an account to join the conversation.

  • Posts: 129
  • Thank you received: 6
  • Hikaauction Standard Hikamarket Multivendor Hikashop Business
4 days 18 hours ago #372873

Thank you Nicolas, I will try the adavnced module manager

Thank you

Please Log in or Create an account to join the conversation.

Moderators: Mohamed Thelji
Time to create page: 0.059 seconds
Powered by Kunena Forum