Skip to content

Commit

Permalink
Merge pull request #22469 from frappe/version-13-hotfix
Browse files Browse the repository at this point in the history
chore: release v13
  • Loading branch information
ankush committed Sep 20, 2023
2 parents df30ff1 + cc3d3dc commit ff34de3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions frappe/public/js/frappe/views/file/file_view.js
Original file line number Diff line number Diff line change
Expand Up @@ -495,6 +495,9 @@ frappe.views.FileView.grid_view =
function redirect_to_home_if_invalid_route() {
const route = frappe.get_route();
if (route[2] === "List") {
// Remove List/File/List from route history to avoid redirect loop on going back
frappe.route_history.pop();

// if the user somehow redirects to List/File/List
// redirect back to Home
frappe.set_route("List", "File", "Home");
Expand Down

0 comments on commit ff34de3

Please sign in to comment.