Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

"https://en.wikipedia.org/wiki/" + encodeURIComponent(title.replace(/ /g, '_'))


That’s better to avoid a redirect, but both work.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: