diff --git src/wp-admin/js/customize-nav-menus.js src/wp-admin/js/customize-nav-menus.js
index 3e223825c4..dd7025cc09 100644
|
|
|
556 | 556 | if ( '' === itemName.val() ) { |
557 | 557 | itemName.addClass( 'invalid' ); |
558 | 558 | return; |
559 | | } else if ( '' === urlValue || 'http://' === urlValue || ! ( '/' === urlValue[0] || urlRegex.test( urlValue ) ) ) { |
| 559 | } else if ( '' === urlValue || 'http://' === urlValue || ! ( '/' === urlValue[0] || '#' === urlValue[0] || urlRegex.test( urlValue ) ) ) { |
560 | 560 | itemUrl.addClass( 'invalid' ); |
561 | 561 | return; |
562 | 562 | } |