Bug 506419 - Location bar context menu is broken
Summary: Location bar context menu is broken
Status: REPORTED
Alias: None
Product: dolphin
Classification: Applications
Component: bars: location (other bugs)
Version First Reported In: 25.04.2
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Dolphin Bug Assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-07-01 04:10 UTC by LaserMoai
Modified: 2025-07-02 03:59 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Screenshot (28.83 KB, image/png)
2025-07-01 04:10 UTC, LaserMoai
Details
KDEBugTriage_Dolphin_Bug 506419 (71.94 KB, image/jpeg)
2025-07-01 05:53 UTC, kdmw.629
Details
KDEBugTriage_Dolphin_Bug 506419-1 (429.08 KB, image/jpeg)
2025-07-02 03:49 UTC, kdmw.629
Details

Note You need to log in before you can comment on or make changes to this bug.
Description LaserMoai 2025-07-01 04:10:18 UTC
Created attachment 182819 [details]
Screenshot

SUMMARY
The context menu can suggest to open the wrong directory if Show Full Path option is enabled and the path is too long to display fully (see the screenshot).

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 6.4.0
KDE Frameworks Version: 6.15.0
Qt Version: 6.9.1
Comment 1 kdmw.629 2025-07-01 05:53:52 UTC
Created attachment 182821 [details]
KDEBugTriage_Dolphin_Bug 506419

Screen shot showing the attempt to replicate the issue in Dolphin and not being able to do so.
Comment 2 kdmw.629 2025-07-01 06:08:32 UTC
I am not a developer at KDE. I am attempting a KDE Bug Triage(https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging). I tried to replicate the bug by creating a deep nested directory structure as shown in the attachment, "KDEBugTriage_Dolphin_Bug 506419". Please have a look at it. 

Will it be possible for you to please give the following information

1) What is the version of KDE Plasma Version, KDE Frameworks Version, Qt Version, the Linux kernel version and Graphics platform version that you are using in Arch linux?  The first three information is available to you by using K menu -> Applications -> System -> Info Center or K menu -> System -> Info Center or start from console using the command kinfocenter 

2) In the screenshot, i.e. "KDEBugTriage_Dolphin_Bug 506419", that I had attached, the full path name is in excess of 50 characters. What is the value in your case? How long is the full path, from root, in terms of number of characters for you? 
If you are fine with it can you please paste the actual full path of the directory where you had the problem? 

3) And finally will it be possible for you to please outline the steps that you took to face the issue?
Comment 3 LaserMoai 2025-07-01 09:56:32 UTC
This problem only exists for the first couple of entries. 

Here's an example of a path:
/home/daniil/real_home/Music/Death Grips/2012.04.21 - The Money Store/2012 - The Money Store (Vinyl Rip)/
Comment 4 kdmw.629 2025-07-02 03:49:42 UTC
Created attachment 182848 [details]
KDEBugTriage_Dolphin_Bug 506419-1

Screenshot showing the behavior occurring in the first two directories or the left two most directories in the path as seen in Dolphin.
Comment 5 kdmw.629 2025-07-02 03:59:13 UTC
(In reply to LaserMoai from comment #3)
> This problem only exists for the first couple of entries. 
> 
> Here's an example of a path:
> /home/daniil/real_home/Music/Death Grips/2012.04.21 - The Money Store/2012 -
> The Money Store (Vinyl Rip)/

Yep this is a bug.

I can confirm that, the behavior is seen to occur in Dolphin 25.04.2. Please see the attached screenshot with the name "KDEBugTriage_Dolphin_Bug 506419-1". This behavior occurs when either the /home part of the path or /home/xxxxx path of the directory gets hidden. Here xxxxx is the user ID. 

So if only the "home" part of the path is hidden, while xxxxx is shown it only happens with xxxxx. Not with the directory immediately after xxxxx.
If both "home" and "xxxxx" are hidden in the path then it happens to the first two directories in the path after "xxxxx"

The difference is that I get the "/" (i.e. root option), while the OP gets "home" as the option. 
If I click on any of the two options, i.e. "Open in a new tab" or "Open in a new Window" then it does open it up in a new tab or a new window respectively.