Search by

selveq / route717

ahmedwalied

Magento 2 Router extension for ScandiPWA theme

Package info

github.com/sellveq/route717

Issues

Type:magento2-module

pkg:composer/selveq/route717

Statistics

Installs: 0

Dependents: 5

Suggesters: 0

Stars: 0

3.0.0 2026-09-18 20:13 UTC

README

Fork of scandipwa/route717 2.1.6, maintained by Selveq for Magento 2.4.9 and PHP 8.3. Module name and namespace are unchanged, and the package replaces scandipwa/route717 at every version, so it installs as a drop-in replacement. Selveq is not affiliated with or endorsed by Scandiweb.

What it does

  • Answers every storefront URL with the ScandiPWA shell and the status the URL deserves: 200 for a product, category, CMS page or a route the theme owns, 404 otherwise, and a redirect where a URL rewrite says so.
  • Carries the first view's data in window.actionName — the entity's type, id, sku and name, a category's display mode, a CMS page's content and slider — and the store settings the theme reads in window.storeConfig, so the first render needs no round trip.
  • Lets the paths named in ignoredURLs fall through to Magento's own controllers: the newsletter confirm and unsubscribe links by default, and whatever other modules add in frontend scope.
  • Decides which non-entity paths are the theme's with a validator per front name — cart, checkout, customer, search, compare, contact, menu, page, newsletter, sales, downloadable, styleguide and wishlist, shared lists by their code — extensible through di.xml.

Install

composer require selveq/route717
bin/magento setup:upgrade

The storefront theme must be registered with theme type 4, which selveq/installer sets; otherwise this router steps aside and Magento's own routers answer.

License

OSL-3.0, the license of the original work. Scandiweb's copyright notices are kept in every file, and each file Selveq changed carries a Modifications © Selveq notice.