Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request: Possibility to disable jumpurl functionality for external links #3

Open
tntrpsw opened this issue May 31, 2016 · 0 comments
Open

Comments

@tntrpsw
Copy link

tntrpsw commented May 31, 2016

Using jumpurl with TYPO3 7.6 it is not possible to get redirected to an external URL when jumpurl is enabled. File links on the other hand are working perfectly (with setting "secure = 1").
This is the exception thrown by TYPO3 for an external link:
#1294585194: The requested file was not allowed to be accessed through Jump URL. The path or file is not allowed.

I have added an additional condition to the JumpUrlProcessor::isEnabled() function on my own checking for links with context UrlProcessorInterface::CONTEXT_EXTERNAL and a globally disabled new option "config.jumpurl_external_disable". Calling this function with another parameter "url" from the process() function it is possible to disable the generation of jumpurl URLs for external links completely:

// If we have an external link and jumpurl is globally disabled for external links we disable it
if (
  $context === UrlProcessorInterface::CONTEXT_EXTERNAL
  && $this->getTypoScriptFrontendController()->config['config']['jumpurl_external_disable']
) {
  $enabled = false;
}

Would it be possible to add this new configuration parameter and functionality in a future version?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant