diff --git a/app/javascript/initializers/index.js b/app/javascript/initializers/index.js
new file mode 100644
index 0000000..2155842
--- /dev/null
+++ b/app/javascript/initializers/index.js
@@ -0,0 +1,14 @@
+let pathname, scrollY
+
+document.addEventListener("turbolinks:before-visit", () => {
+ pathname = window.location.pathname
+ scrollY = window.scrollY
+})
+
+document.addEventListener("turbolinks:render", () => {
+ if (window.location.pathname == pathname) {
+ window.scroll(0, scrollY)
+ }
+
+ pathname = scrollY = null
+})