Quote from: Bravado at Jun 29, 2007, 02:31 AM
Whoa...this is for the links inserted in via the LinksList? Hmm...guess I need to check that out! If so, good call!
Jeff
Maybe I didn’t state the problem well enough.
I have a site that’s using friendly url paths. When I’m editing the page
/doctors/aboutus.html and I try to insert a link-
no matter what the method- no leading foreslash is inserted. This is a problem if I’m trying to insert a link to a different section of the path, ie
/patients/form.html. If I insert one myself, it is removed. The only way for me to get the foreslash in is to turn off TinyMCE and change it manually.
I have tried:
- typing the whole link (/patients/form.html
- Using just the modx code ([~40~])
- Typing the modx code WITH a leading slash (/[~40~])
- Using the Link List
Every single time, no leading foreslash is present after I save. The links, being now relative to the friendly path
/doctors/, now all point to
/doctors/patients/forms.html which is not a page that exists.
The trimming the foreslash thing is a TinyMCE issue, I’m sure of it; but this raises another issue- if the modx code
[~40~] is going to output the whole path anyway, it should also output a foreslash at the beginning. that would effectively solve this problem. It would also prevent any difficulty with images not showing up from
/manager/ because the images would automatically be relative to the site root.