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

symfony - TEST environment only: The database schema is not in sync with the current mapping file -

twig - Using Twigbridge in a Laravel 5.1 Package -

jdbc - Not able to establish database connection in eclipse -