I have jsfiddle here to illustrate my question.
https://jsfiddle.net/morettmt/psh674k7/69/
I have a nav with anchor links to blocks in the page (it's not working perfect, but that’s not the question).
This is actual being used in a WordPress site where the block and the links are created by a content manager in the backend.
My problem is the link doesn't work if it has characters like question marks '?' in it.
Why does this not work if a question mark is in the link.
.block{
background: #ddd;
height: 300px;
margin: 0 0 10px 0;
padding: 10px;
}