Skip to content
This repository has been archived by the owner. It is now read-only.

Export > Embeddable HTML has & instead of & in the output box #4691

Closed
openstreetmap-trac opened this issue Jul 23, 2021 · 2 comments
Closed

Comments

@openstreetmap-trac
Copy link

@openstreetmap-trac openstreetmap-trac commented Jul 23, 2021

Reporter: david[at]frankieandshadow.com
[Submitted to the original trac issue database at 12.17pm, Friday, 16th November 2012]

If you copy and paste the link you get from the export embeddable HTML on the OSM home page, all the ampersands come out as "&". I guess the string is being double encoded somewhere.

By the way, it would be really useful to have just the link available (say in a second box) without all the iframe etc, for copy and paste into emails etc. (That's different from permalink because you can place a custom marker with Export).

@openstreetmap-trac
Copy link
Author

@openstreetmap-trac openstreetmap-trac commented Jul 23, 2021

Author: TomH
[Added to the original trac issue at 9.10am, Friday, 23rd November 2012]

There is nothing wrong here, except that you are cutting and pasting a link from a fragment of HTML into the URL bar - it is correctly encoded HTML but needs the entities expanding to get a raw URL for the browser.

@openstreetmap-trac
Copy link
Author

@openstreetmap-trac openstreetmap-trac commented Jul 23, 2021

Author: david[at]frankieandshadow.com
[Added to the original trac issue at 12.17pm, Thursday, 13th December 2012]

OK, I admit it, I was wrong.

This just reinforces my plea, however, for a fourth export option, which is just a link (with marker), i.e. identical to embeddable except that the content of the box is a link that can be copied and pasted into emails etc (different from permalink primarily in the option to add a marker).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant