Add more parameters in SEO url

Permalink
Hi guys,

I wandering what is the fastest and best way to add more parameters in URL. The thing I need to do is I have a page which lists news items. Each item needs to be a link to a details page where you can read full text. The url needs to be .../news/item-title/item-id

So currently if I put /news/demo-title/1 (1 is my ID) I get 404.

I would very appreciate if someone could share experience how it is possible to get sorted.

Thanks in advance.

 
mesuva replied on at Permalink Reply
mesuva
You can add extra paths to pages via Properties and then Page Paths and Location.
You could add /news/demo-title/1 as an additional url
(it will redirect to just /news/demo-title though)

My question is though, why do you want an ID on the page path? What are you using it for? I can't really see any benefit to having it there myself.
primeit replied on at Permalink Reply
I was kind of planning to load content on details page straight from News table where I keep all the news records. Not via blocks. For this reason I need ID as it would be unique. Title might match sometimes. Well it is possible. This would never happen with record ID from the table. You cannot trust on title as it should have removed spaces and etc.

As the result I would have SEO friendly URL where it would be possible to see title + ID.