Hello,
I have a “GoToBlog” button (connected to the site header) which directs the visitors to the blog page on my site. onClick event is handled as it shown below:
import wixLocation from ‘wix-location’;
export function GoToBlog_click(event, $w) {
$w(“#strip1”).hide();
wixLocation.to(“/newsroom-1”);
}
My problem is when the visitor is already at the blog page and pressed “GoToBlog” again (for example, to start over from the newest blog records), the blog page works incorrectly, it blinks trying to switch back to the first blog page. Please note I hide another element (“strip1”) before I send the visitor to the blog page.
In case I’ll state the FULL PATH in wixLocation.to(), everything works correctly.
Can anyone help?