GetSimple Support Forum
relative urls in images and internal links - Printable Version

+- GetSimple Support Forum (http://get-simple.info/forums)
+-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3)
+--- Forum: General Questions and Problems (http://get-simple.info/forums/forumdisplay.php?fid=16)
+--- Thread: relative urls in images and internal links (/showthread.php?tid=3118)

Pages: 1 2


relative urls in images and internal links - shawn_a - 2012-10-25

undetermined.


RE: relative urls in images and internal links - shovenose - 2012-10-31

Was this fixed or not?


RE: relative urls in images and internal links - Carlos - 2012-10-31

IMHO there's nothing to fix.
GS works like Wordpress: absolute url's for images and links.
No failproof way to have relative links.


RE: relative urls in images and internal links - shawn_a - 2012-10-31

How other CMS handle this are to stick token and shit in their content to handle site urls, this is always a huge issue because it breaks constantly. I believe in no special markup in content, aside from simple things like shortcodes.

I guess one option would be to at least strip the domain off and make it site root relative, at least you can port your site over to another domain with the same structure. Which you cannot even do now, without global replacements.


RE: relative urls in images and internal links - shovenose - 2012-10-31

Meh, I don't think we should worry about it. As long as however its done right mow makes sense!


RE: relative urls in images and internal links - Carlos - 2012-11-01

@shawn_a

yeah, I mentioned the token/shortcode way in some previous post in this thread.

The "relative to root" way for easier migration from dev to production site can be done by just defining it like that in the site settings (see also previous posts) and changing it after migration. No need to change the GS core to use that type of links.

IMO it's best to keep it like it is.

Someone could develop a plugin or script that does the find/replace thing.

(there's at least one for WordPress, that also uses absolute url's)


[edit] a workaround: FixSiteURL plugin.

[edit] a script that does the search/replace thing: http://get-simple.info/forums/showthread.php?tid=5082


RE: relative urls in images and internal links - shawn_a - 2014-08-22

This is being proposed in
https://github.com/GetSimpleCMS/GetSimpleCMS/issues/899