modxcms / revolution

MODX Revolution - Content Management Framework
https://modx.com/
GNU General Public License v2.0
1.36k stars 529 forks source link

Add link_tag_context_scheme to system settings #5999

Open modxbot opened 13 years ago

modxbot commented 13 years ago

okyanet created Redmine issue ID 5999

Currently, cross-context links are forced to full url scheme, preventing issues where contexts represent different domains.

However it would be very useful to override this default and have $context->makeUrl() accept all url schemes.

Requires a new system setting and a small change to the makeUrl() function in both modx.class and context.class

See forum post for background: http://forums.modx.com/thread/71512/dynamic-site-url-setting-within-context#dis-post-398940

Jako commented 9 years ago

+1

At the moment it is not easy to work with babel with the same site_url for all languages. The URL generation of BabelLinks has to be modified to build the URL by cultureKey + alias. This is more complicated than it has to be (by using a relative scheme).

christianseel commented 9 years ago

+1