#104603The selected directory is not stored in LinkBrowser anymore (since v12)
Description
Reproduce
1. Open link browser, e.g. by selecting text in RTE and clicking on link button
2. Open tab “File”, select a different directory
3. Switch to tab “Page“
4. switch back to tab “File”
Expected behaviour: The previously selected directory is still selected
Actual behaviour: Always, fileadmin is selected
In v11, the behaviour is as in “expected behaviour”
(2)
As above, switch to files “tab” and select a file. Create another link and open the “File” tab again. The selected folder is again reset to the default “fileadmin”.
(3) Use the button “Add media file” to open the file browser in “Text & Media” CE, change the directory there too, select a file. Open it again: Here the selected directory is stored!
Videos
current behaviour: The selection of direction in the File link browser is not stored
Regression
I assume this is a regression since v12, because behaviour was fine in v11.
Seems to have been inroduced with patch https://review.typo3.org/c/Packages/TYPO3.CMS/+/78154
In particular: https://review.typo3.org/c/Packages/TYPO3.CMS/+/78154/12/typo3/sysext/backend/Classes/LinkHandler/FileLinkHandler.php#b125
The following was removed:
if ($selectedFolder) {
// If a folder is found, store it in the session to continue where the editor left off the last time
if ($selectedFolder->checkActionPermission('read')) {
$moduleSessionData = $this->getBackendUser()->getModuleData('browse_links.php', 'ses') ?: [];
$moduleSessionData['expandFolder'] = $selectedFolder->getCombinedIdentifier();
$this->getBackendUser()->pushModuleData('browse_links.php', $moduleSessionData);
}
Versions
Tested with
- latest “main” branch (v14)
- lastest 13.4 branch
- latest 12.4 branch
Not reproducible with version 11
Reviews 3
Related issues 1
Files 1
History 1317
-
Sybille Peters commented <span data-processor="relativetime" data-value="2024-08-12T17:25:55+00:00" > 08/12/24, 17:25 </span>
-
Sybille Peters changed Related to #100959 <span data-processor="relativetime" data-value="2024-08-12T17:26:16+00:00" > 08/12/24, 17:26 </span>
-
Sybille Peters changed Is Regression 1 <span data-processor="relativetime" data-value="2024-08-12T17:31:37+00:00" > 08/12/24, 17:31 </span>
-
Benjamin Franzke changed category status
NewAccepted target version <span data-processor="relativetime" data-value="2024-10-07T14:34:50+00:00" > 10/07/24, 14:34 </span> -
Benni Mack changed target version <span data-processor="relativetime" data-value="2024-10-15T09:46:21+00:00" > 10/15/24, 09:46 </span>
-
Sybille Peters changed description <span data-processor="relativetime" data-value="2024-12-01T10:02:04+00:00" > 12/01/24, 10:02 </span>
-
Sybille Peters changed description <span data-processor="relativetime" data-value="2024-12-01T11:05:18+00:00" > 12/01/24, 11:05 </span>
-
Sybille Peters changed description <span data-processor="relativetime" data-value="2024-12-01T11:09:10+00:00" > 12/01/24, 11:09 </span>
-
Sybille Peters changed description <span data-processor="relativetime" data-value="2024-12-01T11:09:57+00:00" > 12/01/24, 11:09 </span>
-
Gerrit Code Review pushed patch set 1 for main to change 87301 status
AcceptedUnder Review <span data-processor="relativetime" data-value="2024-12-01T12:07:44+00:00" > 12/01/24, 12:07 </span> -
Gerrit Code Review pushed patch set 2 for main to change 87301 <span data-processor="relativetime" data-value="2024-12-01T14:08:21+00:00" > 12/01/24, 14:08 </span>
-
Sybille Peters changed attached file_link_browser.gif description <span data-processor="relativetime" data-value="2024-12-01T17:56:14+00:00" > 12/01/24, 17:56 </span>
-
Sybille Peters changed Tags backend usability, file handling <span data-processor="relativetime" data-value="2024-12-07T07:20:15+00:00" > 12/07/24, 07:20 </span>
-
Gerrit Code Review pushed patch set 1 for 13.4 to change 87467 <span data-processor="relativetime" data-value="2024-12-12T10:42:32+00:00" > 12/12/24, 10:42 </span>
-
Gerrit Code Review pushed patch set 1 for 12.4 to change 87468 <span data-processor="relativetime" data-value="2024-12-12T10:42:44+00:00" > 12/12/24, 10:42 </span>
-
Sybille Peters commented and changed status
Under ReviewResolved done0 %100 % <span data-processor="relativetime" data-value="2024-12-12T10:50:10+00:00" > 12/12/24, 10:50 </span>Applied in changeset commit:43a80f8772c4fc500f253a373439b44050bd3014.
-
Benni Mack changed status
ResolvedClosed <span data-processor="relativetime" data-value="2025-08-12T14:37:05+00:00" > 08/12/25, 14:37 </span>
It seems, it is not consistent, how the currently selected directory is determined, compare case (1) and (3) in section “Reproduce” above and see comment https://forge.typo3.org/issues/100959#note-6