Relative hyperlinks when using insert tags

Description

Using the image and file insert tag result in relative hyperlinks. These must expanded to absolute links.

Activity

Show:
Tristan Lins
November 9, 2014, 10:29 AM

Mh, I tried this in my 3.2 dev system and the file tag doesn't work. But the image tag did. O.o

Dennis Patzer
November 9, 2014, 9:16 AM

Thanks for fixing this. file-inserttags also accept file uuid, so I can insert an arbitrary file link (see https://contao.org/de/news/contao_3-2-beta1.html).

Tristan Lins
November 8, 2014, 4:56 PM

It's fixed now, the insert tags are now replaced before the href and src are absolutized. So it should work for all insert tags.

Tristan Lins
November 8, 2014, 4:43 PM

I dont see why the file insert tag is relevant? The tag include a template file and does not insert a hyperlink.

This tag will be replaced with the content of a file from the "templates" directory (replace * with the file name). You can also provide arguments: file::file.php?arg1=val&arg2=val.

See https://contao.org/en/manual/3.3/managing-content.html#insert-tags

Fixed

Assignee

Tristan Lins

Reporter

Tristan Lins

Labels

None

Affected Contao CMS versions

Sprint

Affects versions

Priority

Major