<![CDATA[ Better alias path handling - My Forums]]> https://forums.modx.com/thread/?thread=25138 <![CDATA[Re: Better alias path handling]]> https://forums.modx.com/thread/25138/better-alias-path-handling#dis-post-541093
for Named anchors, solution is pretty straightforward and given in the documentation page
https://rtfm.modx.com/revolution/2.x/making-sites-with-modx/structuring-your-site/resources/named-anchor
under the Using a Plugin to automatically add the URL when using anchors section of the page]]>
Fildefer57 May 01, 2016, 05:34 AM https://forums.modx.com/thread/25138/better-alias-path-handling#dis-post-541093
<![CDATA[Re: Better alias path handling]]> https://forums.modx.com/thread/25138/better-alias-path-handling#dis-post-400789
<a href="#sectionjumpto">Jump</a>
won't work...is there a way to solve this?]]>
exside Nov 20, 2011, 10:00 AM https://forums.modx.com/thread/25138/better-alias-path-handling#dis-post-400789
<![CDATA[Re: Better alias path handling]]> https://forums.modx.com/thread/25138/better-alias-path-handling#dis-post-128969 markh May 28, 2011, 08:58 PM https://forums.modx.com/thread/25138/better-alias-path-handling#dis-post-128969 <![CDATA[Re: Better alias path handling]]> https://forums.modx.com/thread/25138/better-alias-path-handling#dis-post-128968 krisj May 28, 2011, 08:50 PM https://forums.modx.com/thread/25138/better-alias-path-handling#dis-post-128968 <![CDATA[Re: Better alias path handling]]> https://forums.modx.com/thread/25138/better-alias-path-handling#dis-post-128967 http://rtfm.modx.com/display/revolution20/modX.makeUrl)

I think you could use this:

[[~42? &scheme=`full`]] to force it to use that scheme.


Perhaps a concrete suggestion to improve alias path handling is a system setting you can use to determine the default scheme makeUrl uses. That way you can choose to use relative paths and base href, or use absolute paths and don’t have to bother about it.

As far as I can imagine right now, that would be as simple as making the makeUrl function check the system setting and base the default behaviour on that. I think the default should stay what it is now though, as most websites have probably accepted it the way it was and worked around it. So then an upgrade would break it.


( Bug report about this: http://bugs.modx.com/issues/2726 )]]>
markh Dec 17, 2010, 05:21 PM https://forums.modx.com/thread/25138/better-alias-path-handling#dis-post-128967
<![CDATA[Re: Better alias path handling]]> https://forums.modx.com/thread/25138/better-alias-path-handling#dis-post-128966
Is there any real good reason not to?

It would keep us from having to create a plugin to get #targets to work.]]>
chucktrukk Dec 16, 2010, 12:37 AM https://forums.modx.com/thread/25138/better-alias-path-handling#dis-post-128966
<![CDATA[Better alias path handling]]> https://forums.modx.com/thread/25138/better-alias-path-handling#dis-post-128965
* Wayfinder links are broken on 2nd-level pages and above, because they render no leading slash. You have to manually modify the Wayfinder templates and add a / before every href value.
* Same goes for several other add-ons
* The leading slash is not rendered by the
<a href="[[~42]]">Internal link syntax</a>
. You must write it
<a href="/[[~42]]">this way</a>

* The official reference tells you to use <base href="/"> to fix those problems (http://rtfm.modx.com/display/revolution20/Using+Friendly+URLs) Well, this is kind of old-fashioned. And it does not work with internal anchor jump links (They lead to the start page). It’s a lame solution :-(

It is important to have not only friendly, but also semantically correct URLs - and MODx should offer a less complicated way to use nested URL schemes.]]>
gerritvanaaken Oct 05, 2010, 05:05 PM https://forums.modx.com/thread/25138/better-alias-path-handling#dis-post-128965