Replace substr() with substring() or slice(), and better determine the URL prefix to use for the dynamically generated links to other peak list pages.
Replace substr() with substring() or slice(), and better determine the URL prefix to use
for the dynamically generated links to other peak list pages.

nightjuggler/peaks,nightjuggler/peaks,nightjuggler/peaks,nightjuggler/peaks