From 8b2acd81e39b79be96f50ca90ac1ac722944ab2a Mon Sep 17 00:00:00 2001 From: Angelos Chalaris Date: Fri, 27 Mar 2020 17:37:16 +0200 Subject: [PATCH] Update javascript-modify-url-without-reload.md --- blog_posts/javascript-modify-url-without-reload.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blog_posts/javascript-modify-url-without-reload.md b/blog_posts/javascript-modify-url-without-reload.md index 2df464bfe..bb3e9ef0a 100644 --- a/blog_posts/javascript-modify-url-without-reload.md +++ b/blog_posts/javascript-modify-url-without-reload.md @@ -37,7 +37,7 @@ const nextURL = 'https://my-website.com/page_b'; // This will create a new entry in the browser's history, reloading afterwards window.location.href = nextURL; -// This will replace the current entry in the browser's history, reloading afterwards +// This will replace the current entry in the browser's history, reloading afterwards window.location.assign(nextURL); // This will replace the current entry in the browser's history, reloading afterwards