Skip to content

Commit

Permalink
Codifica les URLs d'OSMCha amb paràmetres que no quedaven ben formades.
Browse files Browse the repository at this point in the history
  • Loading branch information
jmaspons committed Dec 3, 2024
1 parent b996c91 commit c594e7d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions R/html.R
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,12 @@ versio_canvi_kable <- function(x, titol) {
"<a href=\"https://osm.org/changeset/", x$changeset, "\">", x$changeset, "</a>",
" (<a href=\"https://osmcha.org/changeset/", x$changeset, "\">OSMcha</a>)"
)
url_usr_osmcha <- paste0(
"https://osmcha.org/?filters={\"users\":[{\"label\":\"", x$user, "\",\"value\":\"", x$user, "\"}]}"
)
x$user <- paste0(
"<a href=\"https://osm.org/user/", x$user, "\">", x$user, "</a>",
" (<a href=\"https://osmcha.org/?filters={\"users\":[{\"label\":\"", x$user, "\",\"value\":\"", x$user, "\"}]}",
"\">OSMcha</a>)"
" (<a href=\"", URLencode(url_usr_osmcha), "\">OSMcha</a>)"
# https://osmcha.org/?filters={"users":[{"label":"jmaspons","value":"jmaspons"}]}
)
out <- knitr::kable(
Expand Down

0 comments on commit c594e7d

Please sign in to comment.