Hello @thijs4alliander
Sorry for the late answer.
I checked my local site and I haven’t this issue. Did you set up redirect in the UM login form setting? In the “Options” sidebar?
Thank you.
Hello Andrewshu,
Thanks for your reaction,
We set it up on the UM/Settings/Acces/Restrictions Content
We set Global Site Acces to “Site accessible to logged in users”
We filled in our own Custom Redirect URL which includes &
The UM works mostly as expected, users that are not logged in are redirected to the custom URL. But every & sign gets replaced by & #038; (without the space like the html code over here https://www.toptal.com/designers/htmlarrows/punctuation/ampersand/)
This makes the URL not work properly anymore.
Excuse my multiple tries, the editor converts the html code to a real ampersand, something that does not happen in the navigation
https://www.toptal.com/designers/htmlarrows/punctuation/ampersand/
Hello @thijs4alliander
Thank you for your feedback. We will fix this in the next release. As a hotfix you could use this code in functions.php file in your child theme:
add_action( 'um_access_check_global_settings', 'my_access_check_global_settings', 10 );
function my_access_check_global_settings() {
$arr_params = array(
'param1' => 'value1',
'param2' => 'value2',
);
$redirect = add_query_arg( $arr_params, um_get_core_page( 'login' ) );
wp_redirect( esc_url_raw( $redirect ) );
exit();
}
You need to change the $arr_params array to your params from the link.
Thank you.
@andrewshu Thank you for your fast reaction, hotfix and fix in next release.
Hello @thijs4alliander
Did it help you? Can I close this topic?
Thank you.
@andrewshu We didn’t get the hotfix to work. We decided to go with an other hotfix for now (knowing it will be fixed in next release) of a shorten url.
I’ll close the topic.