E
E
Eugene Chefranov2019-07-14 08:39:11
Vue.js
Eugene Chefranov, 2019-07-14 08:39:11

Using CNC in Vue Router?

Tell me, are there ready-made solutions for creating human-friendly URLs based on vue router?
Let's say I have several items (several thousand) with Russian names and I want to automatically create separate pages for them, and make the address of these pages transliterated.
Example:

  • interesting article -> interesnaya-statya
  • good news -> dobraya-novost

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Nikolay, 2019-07-15
@tryvols

https://gist.github.com/diolavr/d2d50686cb5a472f5696
Here is a solution for transliteration, in the router you create a route of the articles/:slug type, then in a place convenient for you it generates links using this lib, depending on where you get the list of articles from the server.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question