Related to #23, we need to add an attribute to indicate that a button URL is external or not. This would be passed to the FE where it could be used to set the urlExternal prop for the Button component.
Where wds_set_button_url_external() checks if the button URL domain matches the FE domain and set urlExternal accordingly. #23 will need to be addressed first so cross-linking uses the FE instead of the WP domain.
Related to #23, we need to add an attribute to indicate that a button URL is external or not. This would be passed to the FE where it could be used to set the
urlExternal
prop for theButton
component.Potential approach:
add_filter( 'acf/pre_save_block', 'wds_set_button_url_external' );
Where
wds_set_button_url_external()
checks if the button URL domain matches the FE domain and seturlExternal
accordingly. #23 will need to be addressed first so cross-linking uses the FE instead of the WP domain.