Project

General

Profile

Actions

Bug #91734

open

RTE: Wrong href value after import

Added by Roman Büchler almost 4 years ago. Updated 20 days ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
Import/Export (T3D)
Target version:
-
Start date:
2020-07-01
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
10
PHP Version:
7.4
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

When a text content element contains a mailto or tel link the mailto: and tel: prefix get dropped from the href tag when importing data. Example:

A text content element has the following source code in the bodytext:

<p>Telefon: <a href="tel:###ppCustomerContactPhone###">###ppCustomerContactPhone###</a><br />
Email: <a href="mailto:###ppCustomerContactEmail###">###ppCustomerContactEmail###</a></p>

The exported data.xml file contains:

<tablerow index="tt_content:314" type="array">
    <fieldlist index="data" type="array">
        <field index="uid" type="integer">314</field>
        <field index="rowDescription" type="NULL"></field>
        <field index="pid" type="integer">1</field>
        ...
        <field index="CType">text</field>
        <field index="header">Kundeninfo</field>
        <field index="header_position"></field>
        <field index="bodytext">&lt;p&gt;&lt;strong&gt;###ppCustomerCompany###&lt;/strong&gt;&lt;br /&gt; ###ppCustomerContactAddress###&lt;br /&gt; ###ppCustomerContactZip### ###ppCustomerContactCity###&lt;/p&gt;
&lt;p&gt;Telefon: &lt;a href=&quot;tel:###ppCustomerContactPhone###&quot;&gt;###ppCustomerContactPhone###&lt;/a&gt;&lt;br /&gt; Email: &lt;a href=&quot;mailto:###ppCustomerContactEmail###&quot;&gt;###ppCustomerContactEmail###&lt;/a&gt;&lt;/p&gt;</field>
        <field index="bullets_type" type="integer">0</field>
        ...
<rec index="314" type="array">
    <uid>314</uid>
    <pid>1</pid>
    <title>Kundeninfo</title>
    <relations index="rels" type="array"></relations>
    <softrefs type="array">
        <softref_element index="bodytext:typolink_tag:1" type="array">
            <field>bodytext</field>
            <spKey>typolink_tag</spKey>
            <matchString>&lt;a href=&quot;tel:###ppCustomerContactPhone###&quot;&gt;</matchString>
            <subst type="array">
                <type>string</type>
                <tokenID>e5acf469af1b3ce38253cfa2ee6a0dfb</tokenID>
                <tokenValue>###ppCustomerContactPhone###</tokenValue>
            </subst>
        </softref_element>
        <softref_element index="bodytext:typolink_tag:3" type="array">
            <field>bodytext</field>
            <spKey>typolink_tag</spKey>
            <matchString>&lt;a href=&quot;mailto:###ppCustomerContactEmail###&quot;&gt;</matchString>
            <subst type="array">
                <type>string</type>
                <tokenID>3e83d0c92e2d088b9c22c29cc9ac8cd9</tokenID>
                <tokenValue>###ppCustomerContactEmail###</tokenValue>
            </subst>
        </softref_element>
    </softrefs>
</rec>

After importing the data the text field contains the following source data:

<p>Telefon: <a href="###ppCustomerContactPhone###">###ppCustomerContactPhone###</a><br />
Email: <a href="###ppCustomerContactEmail###">###ppCustomerContactEmail###</a></p>

The imported data doesn't contain any more the tel: or mailto: prefix.


Related issues 2 (2 open0 closed)

Related to TYPO3 Core - Bug #99978: Element browser: subject/body params for mailto links are not possible / fail validationNeeds Feedback2023-02-17

Actions
Has duplicate TYPO3 Core - Bug #94353: Importing mailto and tel linksNeeds Feedback2021-06-16

Actions
Actions #1

Updated by Rémy DANIEL 20 days ago

I confirm the issue on TYPO3 12

It's an issue within the \TYPO3\CMS\Core\DataHandling\SoftReference\TypolinkTagSoftReferenceParser::parse() method, which discard anything found into the href except the email address.

Actions #2

Updated by Rémy DANIEL 20 days ago

  • Has duplicate Bug #94353: Importing mailto and tel links added
Actions #3

Updated by Rémy DANIEL 20 days ago

  • Related to Bug #99978: Element browser: subject/body params for mailto links are not possible / fail validation added
Actions

Also available in: Atom PDF