Page 1 of 1

[MOVED] anchor directs to homepage

Posted: Sun Jan 30, 2011 8:26 am
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