Accessing article in URL via ID# vs Name

General questions relating to Joomla! 3.x.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting.
Forum Post Assistant - If you are serious about wanting help, you should use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10
Post Reply
[lin]darlene
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Fri Nov 05, 2021 1:08 am

Accessing article in URL via ID# vs Name

Post by [lin]darlene » Fri Nov 05, 2021 2:12 am

Updated to Joomla 3.10.3 a few days ago.
Prior to this, could access articles via their id #, i.e. https://<website home page>/cms/index.php/en/160
where 160 is the article id number.
This no longer works on 3.10.3.
No changes have been made to the article or its properties.

Can leave out the /index.php or the /en portions and the URL will be redirected to the above version.

Help would be appreciated.

Darlene
(first post)

User avatar
pe7er
Joomla! Master
Joomla! Master
Posts: 23522
Joined: Thu Aug 18, 2005 8:55 pm
Location: Nijmegen, Netherlands
Contact:

Re: Accessing article in URL via ID# vs Name

Post by pe7er » Fri Nov 05, 2021 7:22 am

Welcome to Joomla forum!

I don't know if/what has changed so that your old method does not work anymore.
Why do you want to access the article via the /cms/index.php/en/160 URL?

Joomla works with Search Engine Friendly URLs like /some/url/page/
However, under the hood it uses URLs with option = component, view = the layout.

So an article with id = 160 is accessible via
index.php?option=com_content&view=article&id=160
Kind Regards,
Peter Martin, Global Moderator
https://db8.nl - Joomla specialist, Nijmegen, Netherlands
The best website: https://the-best-website.com

[lin]darlene
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Fri Nov 05, 2021 1:08 am

Re: Accessing article in URL via ID# vs Name

Post by [lin]darlene » Sun Nov 28, 2021 5:45 pm

Sorry for my late response.

Using /cms/index.php/en/160 as the URL was a nice easy way to display a new page when testing.

It was used on the website occasionally inadvertently and we have changed these few instances to the proper syntax.

I am reading up on Search Engine Friendly URLs.

Thank you for your advice; much appreciated for a self-taught newbie!

User avatar
Per Yngve Berg
Joomla! Master
Joomla! Master
Posts: 28419
Joined: Mon Oct 27, 2008 9:27 pm
Location: Romerike, Norway

Re: Accessing article in URL via ID# vs Name

Post by Per Yngve Berg » Sun Nov 28, 2021 6:13 pm



Post Reply

Return to “General Questions/New to Joomla! 3.x”