monperrus / bibtexbrowser

Beautiful publication lists with bibtex and PHP (standalone or in Wordpress)
http://www.monperrus.net/martin/bibtexbrowser/
84 stars 54 forks source link

keyword with parentheses will not redirect to bibtex-entry #103

Closed LukasCBossert closed 4 years ago

LukasCBossert commented 4 years ago

When parentheses ()appear in the field keywords, the keyword is listed in the side menu, but clicking on it does not lead to the landing page of the bibtey-entry.

Instead the website says

Sorry, no results for this query

monperrus commented 4 years ago

Thanks for the bug report. This should be easy to fix (add urlencode somehwere). Would you give it a try?

LukasCBossert commented 4 years ago

sorry for asking, but where exactly should I add urlencode somewhere? in bibtexbrowser.local.php? Just urlencode within <?php ...?>?

monperrus commented 4 years ago

On my machine, keywords with parentheses work with valid links.

Plus urlencode is already applied, see https://github.com/monperrus/bibtexbrowser/blob/f48e78d/bibtexbrowser.php#L2615

The bug may come from your PHP or webserver config (Apache?)

LukasCBossert commented 4 years ago

ok - thanks. I have bibtexbrowser running on www.crc1382.texografie.de, no idea about the Apache configuration, nevermind, I found a workaround replace () with ❬❭ which is sufficient right now.