Template talk:IOBDB show

From WikiProjectMed
Jump to navigation Jump to search

Bug elated to titles

@Primefac: @Emerson7: Hi! I found a bug in the template Here the search term is more than one word, but the %20 is not added, and so the URL gets broken. In this revision I added %20 and it now works

The template itself should be modified so multiple word searches work.

Thanks, WhisperToMe (talk) 16:42, 23 December 2019 (UTC)[reply]

Aha! The documentation explicitly instructs people to add the "+" sign, but it seems the editor before hadn't done that. I wonder if there's a way for it to automatically add a "+" or "%20" in case there are multiple words used. WhisperToMe (talk) 16:47, 23 December 2019 (UTC)[reply]
Unfortunately not. There used to be a urlencode command that would convert the spaces into +'s, but unfortunately it was breaking the instances where the + was used correctly. Primefac (talk) 17:33, 23 December 2019 (UTC)[reply]
I wonder if the blank spaces can be converted into "%20" instead since that actually seems to work too (see my revision) WhisperToMe (talk) 19:17, 23 December 2019 (UTC)[reply]
I'll swap the functionality and update the template calls. Original coding was kinda dumb. Primefac (talk) 20:35, 23 December 2019 (UTC)[reply]