[solved] page alias and cms_selflink

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
markS
Forum Members
Forum Members
Posts: 58
Joined: Wed Aug 20, 2008 3:04 pm

[solved] page alias and cms_selflink

Post by markS »

Hello,

I've been upgrading a number of the sites I look after to cms 1.9.3 and I'm noticing some issues with apparently changed behaviour regarding page aliases and the cms_selflink tag.

Prior to the 1.9.x series some pages may have been created, despite my advice to the contrary, with a page alias like:

Code: Select all

Content-Management-Systems
This would be accessible with a cms_selflink like:

Code: Select all

{cms_selflink page="content-management-systems" text="Go here"}
It now appears that the case must exactly match within the cms_selflink tag or the link won't be created correctly. For this to work the tag must be;

Code: Select all

{cms_selflink page="Content-Management-Systems" text="Go here"}
Surely cms_selflink should still work regardless of the case within the page param? I can easily reproduce this on cms 1.9.3 with all the latest updates applied.

For some sites I look after this is a show-stopping bug preventing upgrades because after the upgrade half the links would disappear or stop working...

Can anyone confirm?

Thanks,

Mark.
Last edited by markS on Thu Mar 03, 2011 12:17 am, edited 1 time in total.
markS
Forum Members
Forum Members
Posts: 58
Joined: Wed Aug 20, 2008 3:04 pm

Re: page alias and cms_selflink

Post by markS »

Hello again,

So nobody have an opinion on this?

Let me restate it: If the case of the page or href param in a cms_selflink tag doesn't exactly match the case of the page alias then that page will not be found or the link will not be made.

Surely the case of the text used in a cms_selflink should be irrelevent? It no longer seems to be and it also appears to have changed in a very recent version(1.9.x) of cms.

I very much doubt that I'm the only one experiencing this issue? Is it a bug? Expected behaviour? Try it for yourselves, it seems quite wrong to me.

Can anyone comment on this? Even if to tell me I'm completely wrong! :)

Cheers,
Mark.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: page alias and cms_selflink

Post by Dr.CSS »

This hasn't come up before as most let the alias auto generate do it's job, but yes it is a bug that has been addressed in 1.9.4...
markS
Forum Members
Forum Members
Posts: 58
Joined: Wed Aug 20, 2008 3:04 pm

Re: [solved] page alias and cms_selflink

Post by markS »

Hello,

Thanks for the information, I'll hold off upgrading the affected sites until 1.9.4 becomes available.

Cheers,
Mark.
Post Reply

Return to “CMSMS Core”