mbissonho/module-remember-admin-last-page

This module allow a admin user to come back to the same page(order, customer or config management) when it's session expires.

Maintainers

Package info

github.com/mbissonho/remember-admin-last-page-magento2

Type:magento2-module

pkg:composer/mbissonho/module-remember-admin-last-page

Transparency log

Statistics

Installs: 2 498

Dependents: 0

Suggesters: 0

Stars: 10

Open Issues: 0

1.1.0 2026-07-08 01:23 UTC

This package is auto-updated.

Last update: 2026-07-08 22:26:57 UTC


README

Latest Stable Version Packagist Downloads Packagist Downloads

This module allows an admin user to come back to the same page (order, customer or config management) when their session expires.

On top of that, the resume notification can optionally hint which record the saved page was about — for example "Customer — Name: J•h• S•i•h, Email: c•s•o•e•@e•a•p•e.com" — so the admin can decide whether returning to the tab is worth it before clicking, instead of jumping to a page they no longer need.

Prerequisites

  • Magento Open Source version 2.4.x
  • PHP 7.4 – 8.5. PHP 8.2+ is recommended: earlier versions are past their active-support window under Adobe Commerce's lifecycle policy.

Installation

This module can be installed via composer:

composer require mbissonho/module-remember-admin-last-page

After the installation, run:

./bin/magento setup:upgrade && ./bin/magento setup:di:compile

Get Started

After installation, activate the module under: Stores -> Configuration -> Advanced -> Admin -> Remember Admin Last Page.

Relevant settings there:

  • Enabled — turns the whole feature on.
  • Enable notification message — shows the "resume your last page" notification.
  • Show entity details on notificationoff by default. When on (and the notification is on), the notification also shows masked details of the record the saved page was about.

How it works

When an admin's session expires, the module records the last page they were on and, right after they sign back in, takes them straight back to it — no need to navigate back to the order, customer or configuration screen they were editing.

Automatic redirect back to the last page after signing in

Once a tab's session has expired, the login page greets the admin with a short, configurable notification"You can come back to your last accessed page if sign in" by default — so it is immediately clear that this tab can simply restore where they left off, rather than looking like a plain, dead login screen.

Initial notification on the login page telling the admin the session can restore their last page

Entity preview on the login screen

The login-page notification can go one step further and preview which record the remembered page was about. This is the entity preview mechanism: from the saved URL the module detects the entity type (order, customer, product, …), resolves the matching record and renders a compact card with its key fields — always masked — next to a Go to the page shortcut, so the admin can tell whether returning to that tab is still worth it instead of jumping to a page they no longer need.

For security, the preview details are only resolved and shown when the user is already signed in elsewhere — typically because they re-authenticated in another tab and this expired tab is still on the login screen. If there is no active authenticated admin session, the card stays hide: the module never discloses record details to an unauthenticated user.

Entity preview card shown on the login page, with masked customer details

Entity details & extending

The entity preview shown above is extensible: you can teach it about your own entity types, change which fields it displays and how each value is masked. These topics live in dedicated docs:

Testing locally before pushing

The repository ships CI workflows (integration + Playwright e2e) that also run locally via act. See Testing locally before pushing for the full guide, including the act integration-tests workaround.

Maintainers

License

Apache 2.0