Coder Social home page Coder Social logo

magento2-module-nginx-redirect's People

Contributors

mikeo26 avatar serializator avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

gjportegies

magento2-module-nginx-redirect's Issues

Success and/or error messages not shown

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.

Detect conflicts

Prevent redirect loops.

Scenario 1

  1. redirect /foo to /bar
  2. redirect /bar to /foo

Scenario 2

  1. redirect /foo to /bar
  2. redirect /bar to /taylor-swift
  3. redirect /taylor-swift to /foo

Service contracts for depending modules

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

Add hot-reload

  • Only write output when something has changed (compare files and swap / store modified timestamp)
  • Reload nginx
  • Prevent writes when writing :)

Must support Magento CE & EE and make sure it's safe!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.