Project

General

Profile

Actions

Bug #72818

closed

External links including ".php" rendered without http

Added by Wolfram Eberius almost 9 years ago. Updated about 7 years ago.

Status:
Closed
Priority:
Must have
Assignee:
Category:
Frontend
Target version:
Start date:
2016-01-19
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
7
PHP Version:
Tags:
Fluid TypolinkViewHelper
Complexity:
easy
Is Regression:
Yes
Sprint Focus:

Description

Hi,

I have a gridelement and define a link field in it (Flexform below). When I then edit my content and enter a link such as http://www.google.de/index.php the link (TypolinkViewHelper from Fluid) is rendered without http://, so it would lead to http://myexample.com/www.google.de/index.php.

It does work without the "/index.php". It did work with PageViewHelper in TYPO3 6.*.

  • Is that expected behaviour?
  • Is there a viewhelper, or planned, that renders all types of links (internal, external, ...)?
  • If not, is it possible and documented how to call a ViewHelper from another ViewHelper? I tried that but had some questions about setting some context, e.g. with private variables in AbstractViewHelper...

My Workaround is a Fluid Partial for deciding which ViewHelper to take, but I'd like to know if there is a more convenient solution.

Thanks a lot!

My Flexform:

...
            <teaserlink>

                <TCEforms type="array">
                    <config type="array">
                        <type>input</type>
                        <size>15</size>
                        <max>256</max>
                        <checkbox></checkbox>
                        <eval>trim</eval>
                        <wizards type="array">
                            <_PADDING type="integer">2</_PADDING>
                            <link type="array">
                                <type>popup</type>
                                <title>Link</title>
                                <icon>link_popup.gif</icon>
                                <module type="array">
                                    <name>wizard_element_browser</name>
                                    <urlParameters type="array">
                                        <mode>wizard</mode>
                                        <act>file,url,page</act>
                                    </urlParameters>
                                </module>
                                <JSopenParams>height=300,width=500,status=0,menubar=0,scrollbars=1</JSopenParams>
                            </link>
                        </wizards>
                    </config>

                    <label>Something</label>
                </TCEforms>
            </teaserlink>
...

My Fluid template:

...
<f:link.typolink parameter="{data.flexform_teaserlink}">Some link</f:link.typolink>
...


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Task #55626: Replace GeneralUtility::inList with isset() for lists of values being static or within loopsClosedMathias Schreiber2014-02-03

Actions
Actions

Also available in: Atom PDF