weprovide / magento2-module-nginx-redirect Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
When a success and/or error message is added to \Magento\Framework\Message\ManagerInterface
it isn't shown in the frontend after a redirect.
An example is editing a redirect, deleting that redirect in another tab and saving the redirect in the tab with the edit page open. An error is added to \Magento\Framework\Message\ManagerInterface
that the redirect doesn't exist anymore but this error isn't shown on the redirect listing page.
Also make sure output dir exists using Magento filesystem
Prevent redirect loops.
Scenario 1
/foo
to /bar
/bar
to /foo
Scenario 2
/foo
to /bar
/bar
to /taylor-swift
/taylor-swift
to /foo
Aside of only redirects (301, 302) also support rewrites, see https://support.hypernode.com/knowledgebase/rewriting-and-redirecting-urls-in-nginx/
Service contracts allow depending modules to depend on the interface of the redirect model and it's respective repository instead of its concrete implementation.
Service contract design patterns | Magento 2 Developer Documentation
Interfaces can also be used in classes owned by the module itself to keep a clean and more readable codebase by using the repository interface instead of a factory or collection for example to load one or more redirect models directly.
Suggested interfaces
WeProvide\NginxRedirect\Api\Data\RedirectInterface
WeProvide\NginxRedirect\Api\RedirectRepositoryInterface
Must support Magento CE & EE and make sure it's safe!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.