Skip to content

Commit

Permalink
added edge case internetarchive#2
Browse files Browse the repository at this point in the history
  • Loading branch information
roshanr11 committed Dec 6, 2021
1 parent ace29f1 commit d96b095
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openlibrary/templates/search/subjects.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ <h1>
<ul class="subjectList">
$for doc in response['docs']:
$ n = doc['name']
$ key = '/subjects/' + url_map.get(doc['type'], '') + n.lower().replace(' ', '_').replace('?', '').replace(',', '').replace('/' , '%2F').replace('(' , '%8C').replace(')' , '%9C').replace('!' , '').replace('.' , '').replace('|' , '').replace('\' , '').replace('&' , '%2A').replace('^' , '_').replace('>' , '1R').replace('<' , '1L').replace('™', '2L')
$ key = '/subjects/' + url_map.get(doc['type'], '') + n.lower().replace(' ', '_').replace('?', '').replace(',', '').replace('/' , '%2F').replace('(' , '%8C').replace(')' , '%9C').replace('!' , '').replace('.' , '').replace('|' , '').replace('\' , '').replace('&' , '%2A').replace('^' , '_').replace('>' , '1R').replace('<' , '1L').replace('™', '2L').replace('´', '3L')
<li>
<a href="$key">$n</a>
$code:
Expand Down

0 comments on commit d96b095

Please sign in to comment.