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

firemonkey - How do I make a beep sound in Android using Delphi and the API? -

twig - Using Twigbridge in a Laravel 5.1 Package -

jdbc - Not able to establish database connection in eclipse -