-
- 5 Posts
Maybe someone can help me out with this issue, whenever I turn on "Use friendly alias path" it breaks all the links generated by MenuBuilder and that PageTrail snippet. When I follows links deeper in to the folder it begins to append the folder path alias to all the other links.
Example:
Home <- page
About <- page
Stuff <- folder
-> subStuffA <- page
-> subStuffA <- page
if I go into Stuff, everthing is fine, except if I go to one of its sub documents, like subStuffA all my links now have http://domain/Stuff/ <- infront of them, as you can see this is a problem when I want to go back to the home page since
http://domain/Stuff/home.html is not valid path, and even going to subStuffB will break cause it’s listed as
http://domain/Stuff/Stuff/subStuffB.html
I hope that makes sense, I can show and example if anyone really needs, but can’t leave it up since the site I’m working on is constantly being view for by the owner for progress. This is so far the only problem I have encountered.
Thanks!
"Don’t ask why or wither, just enjoy the icecream while it’s on your plate." - Oscar Wild
"Stuff and nonsense for this valley to the next." - Zen Saying
-
- 5 Posts
That seemed to have solved my problem, at least for now because I’m hosting these sites my self. I’m not sure how they’ll be effect when they are eventually moved over to there hosting servers after completion. We’ll just have to see, or I’ll have to work on a fix or a short term hack :’(.
Thanks for your help. I just have to reitterate that I love the community around modx, moving over was the best choice I ever made.
"Don’t ask why or wither, just enjoy the icecream while it’s on your plate." - Oscar Wild
"Stuff and nonsense for this valley to the next." - Zen Saying
-
- 5 Posts
Okay the <base href=""> solved the problem momentarily, that is up until I upgraded to firefox 1.0.4 and then it broke again. After some research I found some interesting information on relative paths and the about using the <base> tag, you can read a good thread about it here
http://www.chrisjdavis.org/2005/05/23/base-href/ I found the best way to solve the problem is to use absolute urls and modify the snippets (MenuBuilder and PageTrail) to include the root / so the paths now appear in the link as "/about/contact.html" instead of "about/contact.html" seems to be the best solution at the moment for anyone wanting friendly alias paths, so far works in all browser and doesn’t require the base tag.
"Don’t ask why or wither, just enjoy the icecream while it’s on your plate." - Oscar Wild
"Stuff and nonsense for this valley to the next." - Zen Saying