Skip to content

Commit

Permalink
refrech the whole page when we change concepts language
Browse files Browse the repository at this point in the history
  • Loading branch information
Bilelkihal authored and syphax-bouazzouni committed Aug 5, 2024
1 parent 8ad7155 commit 5312cbe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/javascript/controllers/language_change_controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ export default class extends Controller {
urlSearchParams.append('language', lang);
}
var newUrl = window.location.origin + window.location.pathname + '?' + urlSearchParams.toString();
Turbo.visit(newUrl);
window.location.href = newUrl;
}
}

0 comments on commit 5312cbe

Please sign in to comment.