Joined December 2013
·

Mario Basic

Croatia
·
·
·

Np, I have found a bug in my code, but that is not it.
By Google suggestions you should have only one URL for specific content and prefix that with a language tag, so I keep all of my routes in english and just change the language tag.

In that way if the "user" wants to see the same page on a different language he does not need to know the slug in the specific language, but only append the desired language to the slug.

This is the way I prefer to keep my URL schema for better SEO.

Great pro tip, but how do you dynamically change language on website from /en to just / and backward while keeping the user on the same page?

Found the solution: https://coderwall.com/p/txyl3g

Achievements
168 Karma
7,940 Total ProTip Views