TYPO3 Logo
TYPO3 Core Changelog
Options
Give feedback View source How to edit Edit on GitHub Full documentation (single file)

TYPO3 Core Changelog

  • ChangeLog v14
    • 14.0 Changes
    • 14.x Changes by type
  • ChangeLog v13
    • 13.4.x Changes
    • 13.4 Changes
    • 13.3 Changes
    • 13.2 Changes
    • 13.1 Changes
    • 13.0 Changes
    • 13.x Changes by type
  • ChangeLog v12
    • 12.4.x Changes
    • 12.4 Changes
    • 12.3 Changes
    • 12.2 Changes
    • 12.1 Changes
    • 12.0 Changes
    • 12.x Changes by type
  • ChangeLog v11
    • 11.5.x Changes
    • 11.5 Changes
    • 11.4 Changes
    • 11.3 Changes
    • 11.2 Changes
    • 11.1 Changes
    • 11.0 Changes
    • 11.x Changes by type
  • ChangeLog v10
    • 10.4.x Changes
    • 10.4 Changes
    • 10.3 Changes
    • 10.2 Changes
    • 10.1 Changes
    • 10.0 Changes
    • 10.x Changes by type
  • ChangeLog v9
    • 9.5.x Changes
    • 9.5 Changes
    • 9.4 Changes
    • 9.3 Changes
    • 9.2 Changes
    • 9.1 Changes
    • 9.0 Changes
    • 9.x Changes by type
  • ChangeLog v8
    • 8.7.x Changes
    • 8.7 Changes
    • 8.6 Changes
    • 8.5 Changes
    • 8.4 Changes
    • 8.3 Changes
    • 8.2 Changes
    • 8.1 Changes
    • 8.0 Changes
    • 8.x Changes by type
  • ChangeLog v7
    • 7.6.x Changes
    • 7.6 Changes
    • 7.5 Changes
    • 7.4 Changes
    • 7.3 Changes
    • 7.2 Changes
    • 7.1 Changes
    • 7.0 Changes
    • 7.x Changes by type
  • Documenting Changes
  • Sitemap
  1. TYPO3 Core Changelog
  2. ChangeLog v11
  3. 11.3 Changes
  4. Feature: #93921 - Sharing backend links
Give feedback Edit on GitHub

Feature: #93921 - Sharing backend links

See forge#93921

Description

With the introduction of backend URL rewrites in forge#93048 and the backend module web component router in forge#93988, it's finally possible to share backend URLs between each other.

To ease the use of this, the \TYPO3\CMS\Backend\Template\Components\Buttons\Action\ShortcutButton is extended for a new option $copyUrlToClipboard, which defaults to true. This option extends the shortcut button in the module header of a backend module. Therefore, the button's icon is also changed. On click, a dropdown opens, including the additional possibility to copy the current backend URL directly to the operating system's clipboard, next to the already existing bookmark option.

For the dropdown button, a new icon share-alt is registered, which can be used through the IconFactory.

In case you are using the shortcut API in your custom backend module and don't want to use this additional option, you can disabled it by setting $shortcutButton->setCopyUrlToClipboard(false). If disabled, the shortcut button is rendered with the same behaviour as before.

Note

Since both ViewHelpers, <be:moduleLayout.button.shortcutButton> as well as <f:be.buttons.shortcut> are deprecated, the new option is not available for those. In case you are currently using one of those ViewHelpers, but still want to profit from the new option in your custom backend modules, you have to create the shortcut button in the corresponding controller using the shortcut API. This will anyways be required in TYPO3 v12.

Besides the new option for the ShortcutButton, a new constant SHAREABLE_URL is available in the UriBuilder. It can be used as value for the $referenceType parameter, which is available for most of the "buildUri" methods, for example UriBuilder->buildUriFromRoute().

$uri = $uriBuilder->buildUriFromRoute($routeName, $arguments, UriBuilder::SHAREABLE_URL);
Copied!

The above example will return an absolute URL without the automatically created token parameter.

Impact

If the new option is enabled, instead of the shortcut button, a dropdown menu is displayed in the module header, including two options:

  • Option to add a shortcut to the current page
  • Option to copy the URL of the current page to the operating system's clipboard

When setting UriBuilder::SHAREABLE_URL as $referenceType in one of the "buildUri" methods supporting this parameter, a shareable URL will be returned.

  • Previous
  • Next
Reference to the headline

Copy and freely share the link

This link target has no permanent anchor assigned. You can make a pull request on GitHub to suggest an anchor. The link below can be used, but is prone to change if the page gets moved.

Copy this link into your TYPO3 manual.

  • Home
  • Contact
  • Issues
  • Repository

Last rendered: May 27, 2025 13:29

© since 1997 by the TYPO3 contributors
  • Legal Notice
  • Privacy Policy