Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Web URL configuration fails for relative default path #4012

Closed
cyberduck opened this issue Dec 16, 2009 · 7 comments
Closed

Web URL configuration fails for relative default path #4012

cyberduck opened this issue Dec 16, 2009 · 7 comments
Assignees
Milestone

Comments

@cyberduck
Copy link
Collaborator

d833482 created the issue

I love cyberduck, but one thing always bothers me a bit. Its the Copy URL and Open Web URL. Somtimes I will upload somefile.html and want to see it. So I right click and choose Open Web URL. The problem is that it uses folder Path as part of the URL, not just the root.
I think most people have to use www, public_html, html, or some kind of Path in their login, but they would rarely or never want that to be included in the Open Web URL or Copy URL path. Maybe a preference could be created to ignore that Path. Then I would get

matthewlein.com/somefile.html

instead of

matthewlein.com/html/somefile.html

@cyberduck
Copy link
Collaborator Author

@dkocher commented

Set /html as the default path in the bookmark. It will then be removed from the Web URL copied.

@cyberduck
Copy link
Collaborator Author

@dkocher commented

Refer to Web URL Configuration.

@cyberduck
Copy link
Collaborator Author

61e8e2d commented

I can confirm that this does not work as desired.

I have an SFTP bookmark with the default path set to public_html/images/ and the web URL set to http://server.tld/~danaris/images. I connect this bookmark, select one of my files, and copy its HTTP URL, and it comes out as http://server.tld/~danaris/images/home/danaris/public_html/images/image.jpg.

@cyberduck
Copy link
Collaborator Author

@dkocher commented

Replying to [comment:4 danaris]:

I can confirm that this does not work as desired.

I have an SFTP bookmark with the default path set to public_html/images/ and the web URL set to http://server.tld/~danaris/images. I connect this bookmark, select one of my files, and copy its HTTP URL, and it comes out as http://server.tld/~danaris/images/home/danaris/public_html/images/image.jpg.

Try to set the default path to an absolute value of /public_html/images (prepending /).

@cyberduck
Copy link
Collaborator Author

61e8e2d commented

I do not mean to give offense, dkocher, but no, it does not work. There is a workaround, but this is not the same thing at all.

There is no reason why "copy HTTP URL" should break so ridiculously just because I have a relative path set as my default path, rather than an absolute path.

@cyberduck
Copy link
Collaborator Author

@dkocher commented

Testcase in 0592ceb.

@cyberduck
Copy link
Collaborator Author

@dkocher commented

In 933415d.

@iterate-ch iterate-ch locked as resolved and limited conversation to collaborators Nov 26, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants