Skip to content

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

License

Notifications You must be signed in to change notification settings

WilliamDASILVA/nuxt-trailingslash-module

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •