Skip to content
A NuxtJS module that makes a 301 redirection to a non trailing slash URL
JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.circleci Init repo with nuxt module template Oct 30, 2017
lib Fix redirect to work with plain node ServerResponse Nov 16, 2017
.editorconfig Init repo with nuxt module template Oct 30, 2017
.eslintrc.js Add module Oct 30, 2017
.gitignore Init repo with nuxt module template Oct 30, 2017
LICENSE Release 1.1.0 Nov 16, 2017
README.md Add module Oct 30, 2017
package-lock.json Release 1.1.0 Nov 16, 2017
package.json Release 1.1.0 Nov 16, 2017

README.md

nuxt-trailingslash-module

npm (scoped with tag) npm js-standard-style

A NuxtJS module that makes a 301 redirection to a non trailing slash URL

Table of Contents

Requirements

  • npm or yarn
  • NuxtJS
  • NodeJS

Install

$ npm install --save nuxt-trailingslash-module
// or
$ yarn add nuxt-trailingslash-module

Getting Started

Add nuxt-trailingslash-module to modules section of nuxt.config.js.

{
  modules: [
    // Simple usage
    'nuxt-trailingslash-module',

    // With options
    ['nuxt-trailingslash-module', {
      /* module options */
      methods: [
        'GET',
        'HEAD',
      ],
    }],
 ]
}

or even

{
  modules: [
    'nuxt-trailingslash-module',
  ],
  trailingslash: {
    methods: [
      'GET',
      'HEAD',
    ],
  },
}

License

MIT License

You can’t perform that action at this time.