Project

General

Profile

Actions

Bug #94353

open

Importing mailto and tel links

Added by Roman Büchler almost 3 years ago. Updated 11 months ago.

Status:
Needs Feedback
Priority:
Should have
Assignee:
-
Category:
Import/Export (T3D)
Target version:
-
Start date:
2021-06-16
Due date:
% Done:

0%

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

Description

When exporting a page tree with mailto and tel links the mailto: and tel: prefix in the href attribute are removed upen importing the page tree.

Content before exporting:


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

Content after importing:

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

The exported xml-data looks fine:

<field index="bodytext" type="array">
    <softrefs type="array">
        <keys type="array">
            <softref_key index="typolink_tag" type="array">
                <softref_element index="1" type="array">
                    <matchString>&lt;a href=&quot;tel:###ppCustomerContactPhone###&quot;&gt;</matchString>
                    <subst type="array">
                        <type>string</type>
                        <tokenID>ab2fb0e6ec563e974121ea62e58d9e35</tokenID>
                        <tokenValue>###ppCustomerContactPhone###</tokenValue>
                    </subst>
                </softref_element>
                <softref_element index="3" type="array">
                    <matchString>&lt;a href=&quot;mailto:###ppCustomerContactEmail###&quot;&gt;</matchString>
                    <subst type="array">
                        <type>string</type>
                        <tokenID>cdd572aa4a5cb7397564833359594c62</tokenID>
                        <tokenValue>###ppCustomerContactEmail###</tokenValue>
                    </subst>
                </softref_element>
            </softref_key>
        </keys>
        <tokenizedContent>&lt;h2&gt;###ppCustomerCompany###&lt;/h2&gt;
            &lt;p&gt;###ppCustomerContactAddress###&lt;br /&gt; ###ppCustomerContactZip### ###ppCustomerContactCity###&lt;/p&gt;
            &lt;p&gt;Telefon: &lt;a href=&quot;{softref:ab2fb0e6ec563e974121ea62e58d9e35}&quot;&gt;###ppCustomerContactPhone###&lt;/a&gt;&lt;br /&gt; Email: &lt;a href=&quot;{softref:cdd572aa4a5cb7397564833359594c62}&quot;&gt;###ppCustomerContactEmail###&lt;/a&gt;&lt;/p&gt;</tokenizedContent>
    </softrefs>
</field>


Related issues 1 (1 open0 closed)

Is duplicate of TYPO3 Core - Bug #91734: RTE: Wrong href value after importNew2020-07-01

Actions
Actions #1

Updated by Georg Ringer 11 months ago

  • Status changed from New to Needs Feedback

wouldn't it make more sense as ###ppCustomerContactPhone### is added on demand (i guess) to just add the tel: there as prefix as well?

as the linkservice does check the syntax, I guess it fails and for me this sounds quite correct

Actions #2

Updated by Rémy DANIEL about 1 month ago

  • Is duplicate of Bug #91734: RTE: Wrong href value after import added
Actions

Also available in: Atom PDF