[MOVED] anchor directs to homepage

Help with getting the CMS CORE package up and running. This does not include 3rd party modules, PHP scripts, anything downloaded via module manager or from any external source.
Locked
User avatar
frankmanl
Power Poster
Power Poster
Posts: 425
Joined: Sat Jul 12, 2008 3:50 am

[MOVED] anchor directs to homepage

Post by frankmanl »

EDITED
I moved this question to another board, see http://forum.cmsmadesimple.org/viewtopi ... =8&t=52969

===========================

This problem has been mentioned before, and it seems that it has been solved. But, maybe due to the migration of the forum, the solution is corrupted.

problem
On page page-alias I place an anchor, using the icon in TinyMCE.
Somewhere on that page I create a link to the anchor.
When clicking that link I am directed to the homepage (the link is something like: mydomain.com/#anchor in stead of mydomain.com/page-alias#anchor).
This problem has been described in e.g. topics http://forum.cmsmadesimple.org/viewtopic.php?t=47038 and http://forum.cmsmadesimple.org/viewtopic.php?t=10072

offered solutions
Dr. CSS (topic 47038) suggests to use the anchor tag, which is fine for myself, but for some of my clients use of such a tag is beyond their capabilities.

inyerface (topic 10072) suggests to hack a file of TinyMCE:
Change: modules/TinyMCE/tinymce/jscripts/tiny_mce/plugins/advlink/js/advlink.js
Find around line 373:

Code: Select all

html += '' + name + '';
Change it to:

Code: Select all

html += '' + name + '';
and Alby says
Maybe this is better:

Code: Select all

html += '' + name + '';
because respect pretty url
Now this last solution sounds promising, but here it looks like migration of the forum corrupted the lines of code: they are all exactly the same!
I found the same solution, corrupted in the same way, in a Dutch topic.

Can anyone recreate these lines of code?

Frank
Locked

Return to “[locked] Installation, Setup and Upgrade”