@zidance, there is a library (and others) that makes this simple...
What kind of URL slug implementation for products commonly being used?
I have a question when want to use slug as part of my URL for getting product details.
How's the implementation will looks like if using slug as unique identifier to get product details?
I am doing something like this ..../chocolate-cake-1, i will always append id to last of item slug.
-
If i have a product existed with slug
chocolate-cake, then anotherchocolate-cakeproduct being added. Are we going to force user to change the slug with new unique slug or we just like randomly add a unique identifier for it when detecting duplicated? -
Just using the id either in hashed or plain format, but this is bad for SEO right?
-
Using slug with id, i.e
.../slug-here-id, this is what i am currently using now.
Or is there any better suggestion or method to make the url design looks better?
Please or to participate in this conversation.