Page 1 of 1

Wrong image links in CGCalendar

Posted: Sat May 12, 2018 6:04 am
by thomahawk
Hello CMSMS users

In my events detail pages, image links are wrong. The links goes to domain.com/calendar/7/uploads/image instead of domain.com/uploads/image

and I can not find where to influence that. Most easy solution would be to just define an absolute link for the image directly on the event detail, but TinyMCE does not save any change to that link, even when done directly in the code from tools/html.

I am using CMSMS 2.2.7, CGCalendar 2.5.1

Can't find any posts with the same problem in the forum, though.

Re: Wrong image links in CGCalendar

Posted: Sat May 12, 2018 9:00 pm
by velden
Consider using the <base> tag in the head section. It comes with the {metadata} tag by default, but if you don't use that you should create it yourself.

Something like:

Code: Select all

<base href="{root_url}" />

Re: Wrong image links in CGCalendar

Posted: Sat May 12, 2018 9:19 pm
by thomahawk
Thank you velden! I seems I did indeed not use the meta tag for this page, because it is a simple iframe displayed in a fancybox popup.

Now with

Code: Select all

<base href="{root_url}" />
on the template, the image link is correct and the image displayed.

I am so glad for your help!

Greetings
Thomas