Prevent duplicate bookmarks

How can I prevent duplicate bookmarks with different url parameter?

For example:

The webpages is same but the smart group does not detect it.

I don’t think you can; you could easily automatically remove the section following ? in the URL using a script, leaving just the first portion which then would presumably be recognised as a duplicate. On the other hand, what then happens to which is not the same webpage as I don’t think there is any way you can automate that intelligence without software which actually actively compares the results of parsing the URL.

I’m seeing both URLs here marked as duplicates…

Is it sarcasm?

No, it’s not sarcasm.
I’m stating I am showing bookmarks of these two URLs are reported as duplicates here.

The difference then presumably being the ? in the OP’s URLs.