Changeset 1779 in josm


Ignore:
Timestamp:
Jul 12, 2009 7:50:32 PM (4 years ago)
Author:
Gubaer
Message:

fixed #2923: Info/History dialog (C-i / C-h) links to http://api.openstreetmap.org, not just openstreetmap.org

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/AbstractInfoAction.java

    r1697 r1779  
    3737        if (ret.equals(baseUrl)) { 
    3838            System.out.println(tr("WARNING: unexpected format of API base URL. Redirection to history page for OSM primitive will probably fail. API base URL is: ''{0}''",baseUrl)); 
     39        } 
     40        if (ret.startsWith("http://api.openstreetmap.org/")) { 
     41            ret = ret.substring("http://api.openstreetmap.org/".length()); 
     42            ret = "http://www.openstreetmap.org/" + ret; 
    3943        } 
    4044        return ret; 
Note: See TracChangeset for help on using the changeset viewer.