This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: webbrowser module cannot open the right URL
Type: Stage:
Components: Library (Lib) Versions: Python 2.5
process
Status: closed Resolution: out of date
Dependencies: Superseder:
Assigned To: Nosy List: fossilet, georg.brandl
Priority: normal Keywords:

Created on 2007-04-02 07:35 by fossilet, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (2)
msg31686 - (view) Author: Yongzhi Pan (fossilet) * Date: 2007-04-02 07:35
My python version is:
tux 0 ~ $ ipython 
Python 2.5 (release25-maint, Mar 29 2007, 11:14:31) 
Type "copyright", "credits" or "license" for more information.

I use the example given at http://docs.python.org/lib/module-webbrowser.html :
In [1]: import webbrowser

In [2]: url = 'http://www.python.org'

In [3]: webbrowser.open_new_tab(url + '/doc')

The location bar of firefox shows:

file:///home/tux/%22http://www.python.org/doc%22

and firefox cannot open the URL.

This problem also occurs with local dir URLs. webbrowser.open also has this problem. In python 2.4.4 things are OK.
msg31687 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2007-04-02 07:46
This should be fixed in 2.5.1 which comes out in a few days. If not, please reopen.
History
Date User Action Args
2022-04-11 14:56:23adminsetgithub: 44794
2007-04-02 07:35:56fossiletcreate