sails.js - sails js - create seo friendly url -


i have created sails js appication. want create seo friendly url application. there plugins sails js create seo friendly url or should create them manually?

in sails.js, can set routes (assuming you're setting blog app)

'get /articles/:title': { controller: articlescontroller }

and inside articlescontroller, can have function creates url slugs blog post title (something speakingurl). save in models/articles.js in post-title field. now, everytime wants visit example.com/articles/how-to-get-cats-to-like-you, automatically fetch relevant article.


Comments

Popular posts from this blog

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -