Bug 194374 - HTML links in folderview lose relative path context
Summary: HTML links in folderview lose relative path context
Status: RESOLVED NOT A BUG
Alias: None
Product: plasma4
Classification: Plasma
Component: widget-folderview (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-28 04:48 UTC by Joseph Reagle
Modified: 2012-05-28 22:25 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Example of relative URL (67.28 KB, image/png)
2009-12-07 16:42 UTC, Joseph Reagle
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Joseph Reagle 2009-05-28 04:48:28 UTC
Version:           4.2.3 (using KDE 4.2.3)
OS:                Linux
Installed from:    Ubuntu Packages

Under KDE 3.5.10, a desktop icon/symlink might refer to:
  /home/reagle/_joseph/rawdog/rawdog.html
This is the actual path in the address window, and the HTML may contain relative references (e.g., to a CSS file, or links). In KDE 4 folderview the URL shown is not so kind (referring to Desktop).
Comment 1 Aaron J. Seigo 2009-11-03 20:24:15 UTC
i have no idea what is meant by "URL shown is not so kind". perhaps you could offer what is actually shown or what actually happens versus what you actually expected. screenshots might be helpful. this report is undecipherable as it currently sits, however, and will be closed as invalid unless updated with further information.
Comment 2 Joseph Reagle 2009-11-03 20:49:42 UTC
On Tuesday 03 November 2009, Aaron J. Seigo wrote:
> --- Comment #1 from Aaron J. Seigo <aseigo kde org>  2009-11-03 20:24:15 ---
> i have no idea what is meant by "URL shown is not so kind". perhaps you could
> offer what is actually shown or what actually happens versus what you actually
> expected. screenshots might be helpful. this report is undecipherable as it
> currently sits, however, and will be closed as invalid unless updated with
> further information.

As you can see in the attached screenshot, a web page (rawdog.html) that is opened from the Desktop folderview widget using has a path in the Konqueror address bar using the Desktop path:
  /home/reagle/Desktop/rawdog.html
not its true source. 
  /home/reagle/_joseph/rawdog/rawdog.html
Therefore, relative links (including CSS) within that HTML are broken.

I recently migrated to KDE4 on a daily basis because I can now happily have proper desktop icons with correct relative links when opened and don't use folderview+Desktop.
Comment 3 Beat Wolf 2009-12-07 16:24:59 UTC
2 things:
i think you forgot to attach the screenshot

second. try to set folderview to the desktop folder manual, you can specify the path to the folder that folderview shows. what happens if you set that and don't use the option "show desktop".
Comment 4 Joseph Reagle 2009-12-07 16:41:55 UTC
1. I attached screenshots to the email, but apparently they didn't make it into bugs.kde.org .
2. Specifying the folder as "/home/reagle/Desktop" rather than opting for "Show the Desktop" does not help. Konqueror still opens any links to HTML files as being in the Desktop directory, breaking relative links.
Comment 5 Joseph Reagle 2009-12-07 16:42:26 UTC
Created attachment 38899 [details]
Example of relative URL
Comment 6 Theo Chatzimichos 2010-01-13 15:05:40 UTC
I couldn't reproduce with latest trunk, you should try with 4.4 RC1
Comment 7 Beat Wolf 2010-01-13 18:24:49 UTC
closing as needsinfo, please retest with kde 4.4, thank you
Comment 8 Myriam Schweingruber 2012-05-28 22:25:39 UTC
Closing for lack of feedback.