Code Monkey home page Code Monkey logo

snail's Introduction

snail

Snail module prevents Drupal's router from looking at path aliases for nodes when making routing decisions.

In decoupled applications you don't want all routes in Drupal to be valid routes in your front-end application, and sometimes you might even want to create a piece of content which has the same URL as an existing Drupal route (e.g. "/admin").

This module will allow you to continue using an entity's path field, which gives you collison detection, token integration, and redirect support, but without causing any routing side-effects in your Drupal site. So instead of this:

Shows a node that has had it's path set to "/admin"

You will continue to get your usual admin page.

Based upon an idea from @justafish.

¡Don't install this module on sites with Drupal as a frontend. It will break path aliases!

Name of the module

In the context of decoupled architecture and routing people talk about the concept of slugs. In Drupal these things are mostly call path aliases. This module protects the path aliase system aka. slugs, much like a snail is a protected slug.

snail's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

snail's Issues

Update README

Make sure that people understand that this module will cripple your Drupal front-end. Only to be used on fully decoupled sites.

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.