Skip to main content
2 of 2
Clear up explanation and enhance SEO. (This answer was a bit to hard to find a moment ago.)
Brock Adams
  • 13k
  • 5
  • 39
  • 64

I don't see any particular reason not to add it, but there are some workarounds you can use in the meantime:

  • Build a cache of all site information with the site URL as the key, and then look up the api_site_parameter value (and associated information) that way.

or

Clean up the returned site_url to fit, i.e.:

    var api_site = network_user.site_url.substring(
        network_user.site_url.indexOf("//") + 2,
        network_user.site_url.length - 1
    );
Tim Stone
  • 4.7k
  • 3
  • 22
  • 32