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 Answers2

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]]]].

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.

OptimusCrime
  • 14,662
  • 13
  • 58
  • 96
  • 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... – user1456168 Apr 29 '14 at 17:22