Changeset 1779 in josm for trunk/src/org/openstreetmap/josm


Ignore:
Timestamp:
2009-07-12T19:50:32+02:00 (15 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.