Bug 465776

Summary: For relative symbolic links, "Link to file://" status shows the path of the hovered link, not to the path it points to
Product: [Applications] dolphin Reporter: ratijas <me>
Component: bars: statusAssignee: Dolphin Bug Assignee <dolphin-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: normal CC: brkr.sal, kfm-devel, meven29
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Dolphin - relative link bug

Description ratijas 2023-02-15 15:28:10 UTC
Created attachment 156277 [details]
Dolphin - relative link bug

SUMMARY

Link to file:// seems to be showing the wrong thing. Instead of a target path, it shows the hovered file itself. But the bug only happens with relative links, like "../../actions/16/im-user.svg", not the absolute paths like "/home/ratijas/blahblahblah".

STEPS TO REPRODUCE
1. Create a relative symbolic link via `ln -s ./target link-name`, or clone some git repo which has links.
2. Open directory with link in Dolphin.
3. Hover over the link.

OBSERVED RESULT
Link to file:///home/ratijas/bug/relative link.txt

EXPECTED RESULT
Link to ~/bug/target.txt

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: git-master
Qt Version: 5.15.8
Kernel Version: 6.1.11-arch1-1 (64-bit)
Comment 1 Berker 2023-02-21 06:04:26 UTC
I was having this issue for some time
Comment 2 Méven Car 2023-03-23 11:45:50 UTC
> Instead of a target path, it shows the hovered file itself.

I am guessing you are talking about the status bar info.
In which case this bug is a duplicate of https://bugs.kde.org/show_bug.cgi?id=464326.
Comment 3 ratijas 2023-03-23 11:52:26 UTC
> I am guessing you are talking about the status bar info.

You don't have to guess, it is literally written in the bug title :)

*** This bug has been marked as a duplicate of bug 464326 ***