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 #1

Updated by Markus Klein almost 9 years ago

  • Category changed from Fluid to Frontend
  • Status changed from New to Accepted
  • Assignee set to Markus Klein
  • Priority changed from Should have to Must have
  • Target version set to Candidate for patchlevel
  • Is Regression changed from No to Yes

Can be easily reproduced by using FSC and setting an external link on the header of a content element.

Actions #2

Updated by Markus Klein almost 9 years ago

  • Target version changed from Candidate for patchlevel to 7.6.3
  • Complexity set to easy
Actions #3

Updated by Gerrit Code Review almost 9 years ago

  • Status changed from Accepted to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/46082

Actions #4

Updated by Gerrit Code Review almost 9 years ago

Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/46082

Actions #5

Updated by Gerrit Code Review almost 9 years ago

Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/46082

Actions #6

Updated by Gerrit Code Review almost 9 years ago

Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/46082

Actions #7

Updated by Gerrit Code Review almost 9 years ago

Patch set 5 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/46082

Actions #8

Updated by Gerrit Code Review almost 9 years ago

Patch set 6 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/46082

Actions #9

Updated by Gerrit Code Review almost 9 years ago

Patch set 7 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/46082

Actions #10

Updated by Gerrit Code Review almost 9 years ago

Patch set 1 for branch TYPO3_7-6 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/46106

Actions #11

Updated by Markus Klein almost 9 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #12

Updated by Riccardo De Contardi about 7 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF