Allow Dots (.) in Joomla Menu Alias / URLs

General questions relating to Joomla! 3.x. Please consider the availability of third-party templates and extensions when deciding which Joomla version to use.

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.
noangel666
Joomla! Apprentice
Joomla! Apprentice
Posts: 7
Joined: Fri Nov 29, 2013 1:47 pm

Allow Dots (.) in Joomla Menu Alias / URLs

Postby noangel666 » Mon Apr 16, 2018 1:49 pm

Hi I know Joomla strips dots and changes them to hyphens by default, is there a way to allow them?

I really need to be able to use them but don't want to overwrite all my other links, just start using them from now on.

Thanks
Claire

gws
Joomla! Virtuoso
Joomla! Virtuoso
Posts: 3343
Joined: Tue Aug 23, 2005 1:56 pm
Location: Kent / Sussex / Surrey border UK
Contact:

Re: Allow Dots (.) in Joomla Menu Alias / URLs

Postby gws » Mon Apr 16, 2018 3:11 pm

You can use them in menu titles but not in the url or alias as they are reserved characters.

noangel666
Joomla! Apprentice
Joomla! Apprentice
Posts: 7
Joined: Fri Nov 29, 2013 1:47 pm

Re: Allow Dots (.) in Joomla Menu Alias / URLs

Postby noangel666 » Mon Apr 16, 2018 3:59 pm

Yeah I know that, but there must be a way to remove them from the reserved somewhere?

User avatar
AMurray
Joomla! Virtuoso
Joomla! Virtuoso
Posts: 3693
Joined: Sat Feb 13, 2010 7:35 am
Location: Australia

Re: Allow Dots (.) in Joomla Menu Alias / URLs

Postby AMurray » Mon Apr 16, 2018 9:04 pm

It's not that simple. Reserved words and characters are that way for a reason (in programming uses). Including in things like URLs and even filenames in your operating system - Windows for instance doesn't allow full-stops in file names since it already uses that character to designate the file type - the file extension .txt, .doc and so on.

Other examples of reserved characters like forward slash / and back slash \ - both used in either file pathnames or URLs so can't be used in file names or URL aliases.

https://en.wikipedia.org/wiki/Reserved_word

So, just FYI :).
Regards,
--------------------------------------------------------------
A Murray
Millennium Falcon - it's the ship that made the Kessel run in less than 12 parsecs! The fastest hunk of junk in the galaxy.

noangel666
Joomla! Apprentice
Joomla! Apprentice
Posts: 7
Joined: Fri Nov 29, 2013 1:47 pm

Re: Allow Dots (.) in Joomla Menu Alias / URLs

Postby noangel666 » Mon Apr 16, 2018 9:42 pm

Yes I get all that but dots and underscores can be used in URLs

This site even does it...https://docs.joomla.org/Search_Engine_Friendly_URLs

Every vouchercode and deal website in google does it...https://www.vouchercodes.co.uk/groupon.com

At the moment I am limited to just doing /groupon but there must be a reason all the top ones do it

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 34441
Joined: Sat Apr 05, 2008 9:58 pm

Re: Allow Dots (.) in Joomla Menu Alias / URLs

Postby Webdongle » Mon Apr 16, 2018 11:07 pm

https://docs.joomla.org/Search_Engine_Friendly_URLs
docs is a subdomain of joomla.org not a file path

vouchercode .uk is a tld although groupon .com appears to be a path it is also a tld. Perhaps they did some dns magic ?

User avatar
brian
Joomla! Master
Joomla! Master
Posts: 11657
Joined: Fri Aug 12, 2005 7:19 am
Location: Leeds, UK
Contact:

Re: Allow Dots (.) in Joomla Menu Alias / URLs

Postby brian » Tue Apr 17, 2018 1:06 am

Using a period in a url is perfectly valid as far as the standards specification is concerned
Ref https://perishablepress.com/stop-using- ... s-in-urls/

I do not know the reason why Joomla doesnt allow the period in the url (the docs website is mediawiki not joomla)
"Exploited yesterday... Hacked tomorrow"
Blog http://brian.teeman.net/
Joomla Hidden Secrets http://hiddenjoomlasecrets.com/

mbabker
Joomla! Hero
Joomla! Hero
Posts: 2176
Joined: Sun Feb 28, 2010 8:26 pm

Re: Allow Dots (.) in Joomla Menu Alias / URLs

Postby mbabker » Tue Apr 17, 2018 2:14 am

If you have SEF URLs enabled with file suffixes, the content after the last dot will be used to set the view format (HTML, JSON, XML, etc.). See https://github.com/joomla/joomla-cms/bl ... #L110-L120 for reference.

You'd have to do something about that behavior before the use of dots in aliases could be considered.
So long and thanks for all the fish.

Manually updating Joomla? See https://gist.github.com/mbabker/d7bfb4e1e2fbc6b7815a733607f89281

User avatar
brian
Joomla! Master
Joomla! Master
Posts: 11657
Joined: Fri Aug 12, 2005 7:19 am
Location: Leeds, UK
Contact:

Re: Allow Dots (.) in Joomla Menu Alias / URLs

Postby brian » Tue Apr 17, 2018 2:37 am

doh - i new there was a good reason
"Exploited yesterday... Hacked tomorrow"
Blog http://brian.teeman.net/
Joomla Hidden Secrets http://hiddenjoomlasecrets.com/


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

Who is online

Users browsing this forum: No registered users and 11 guests