Friendly URLs with internal links in <a href>-style

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
piar
Forum Members
Forum Members
Posts: 10
Joined: Fri Feb 27, 2009 5:30 pm

Friendly URLs with internal links in <a href>-style

Post by piar »

Hello!

CMS-linker link-style of TinyMCE on my site is set to -style. I decided to use this instead of {cms_selflink}-style because it is more intuitive for not very experienced users (anchors in editor box are in WYSIWYG and tags aren't).

But after I've switched to SEO friendly URLs (with mod_rewrite) there is a problem: that local links inserted in TinyMCE aren't chagned to friendly URLs (so they are still like index.php?page=).

Is there some way to work around this? Every help would be very appreciate...

Regards,
Last edited by piar on Sat Apr 04, 2009 11:41 am, edited 1 time in total.
simplesimon
Forum Members
Forum Members
Posts: 17
Joined: Thu Jul 09, 2009 8:35 am

Re: Friendly URLs with internal links in <a href>-style

Post by simplesimon »

I am wondering about this exact issue. It is quite important. The reason is that if I have internal links with different URLs(some pretty/some not) that is not good for SEO. Duplicate content issues come to mind. How can we hack the TinyMCE addon that does the internal linking?

Does anyone have any ideas? I think this is quite an important issue. If it is not added as an option ([]generate pretty links) in the TinyMCE config page, then at least it should be hackable.

Well, I'll start digging around. Yikes...  :D
simplesimon
Forum Members
Forum Members
Posts: 17
Joined: Thu Jul 09, 2009 8:35 am

Re: Friendly URLs with internal links in <a href>-style

Post by simplesimon »

I did a grep for cms_selflink on modules/TinyMCE and found:
the necessary code is already in TinyMCE/TinyMCE.module.php

The story goes like this:

I was developing a site. I didn't have pretty URLs turned on yet. So, TinyMCE was inserting ugly URLs.

It's probably in the manual. But I'm a moron and didn't take time to read it... Erk...  ::) ;D
Post Reply

Return to “CMSMS Core”