From 9139d496284d63a8312a187067f8cb33f651bfe5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20B=C3=B6hmer?= Date: Sat, 30 Jul 2022 13:25:29 +0200 Subject: [PATCH] Fixed global reload mechanism. --- assets/controllers/turbo/global_reload_controller.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/controllers/turbo/global_reload_controller.js b/assets/controllers/turbo/global_reload_controller.js index 02c2b965..3f03726b 100644 --- a/assets/controllers/turbo/global_reload_controller.js +++ b/assets/controllers/turbo/global_reload_controller.js @@ -3,6 +3,6 @@ import { Controller } from '@hotwired/stimulus'; export default class extends Controller { connect() { //If we encounter an element with global reload controller, then reload the whole page - window.location.href = window.location.href; + window.location.reload(); } } \ No newline at end of file