Nav menus strip out square brackets in url's
|Reported by:||frisco||Owned by:|
Description (last modified by SergeyBiryukov)
Similar to trac ticket #24663 or trac ticket #16859, nav menus strip out square brackets in URL's, starting with line 390 of wp-includes/nav-menu.php, because of esc_raw_url(). Behavior exists in trunk as well as 3.6.1.
Square brackets in URL's are needed for query parameters with Elastic Search, and it's helpful to put these pre-built queries into menus. There are probably other use cases as well. The brackets can be encoded, which works fine, but should average users be expected to encode menu URL's?
Is there another way to safely use URL's without stripping square brackets?