0

Sorry, this is probably a very basic question, but I'm new to ModX and haven't been able to find an answer.

I am trying to get friendly urls working, but right now, all my urls are showing up like

http://localhost/modx/modx-2.2.13-pl/"http://localhost/modx/modx-2.2.13-pl/other.html

instead of the expected

http://localhost/modx/modx-2.2.13-pl/other.html

I probably don't have some system setting set correctly; any help would be greatly appreciated...

2 Answers 2

0

Sounds like you've forgotten to add

<base href="[[++site_url]]" />

To your head.

At least that is the first thing that comes to mind.

1
  • Thanks Optimus. It turns out that the problem was caused by having the no-cache "!" in my base; once I kicked that out, all works well... Apr 29, 2014 at 17:22
0

Sounds like you're generating the links with full path, are you doing them yourselves or is it Wayfinder or some snippet? And why do you have a " there in the middle of the string?

The basic idea is to use a base_href consisting of your root, http://localhost/modx/modx-2.2.13-pl/, and then construct links like [[~[[+idToPageYouWantToLink]]]].

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.