Content server: OPDS feed: Fix incorrect up URL in category group feeds. Fixes #1932992 [OPDS 'up' navigation issue](https://bugs.launchpad.net/calibre/+bug/1932992)

This commit is contained in:
Kovid Goyal 2021-06-21 17:09:44 +05:30
parent 3dccfae35a
commit a0e2b1c5b0
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -596,7 +596,7 @@ def opds_categorygroup(ctx, rd, category, which):
category_name = meta.get('name', which) category_name = meta.get('name', which)
which = from_hex_unicode(which) which = from_hex_unicode(which)
feed_title = default_feed_title + ' :: ' + (_('By {0} :: {1}').format(category_name, which)) feed_title = default_feed_title + ' :: ' + (_('By {0} :: {1}').format(category_name, which))
owhich = as_hex_unicode('N'+which) owhich = as_hex_unicode('N'+category)
up_url = rc.url_for('/opds/navcatalog', which=owhich) up_url = rc.url_for('/opds/navcatalog', which=owhich)
items = categories[category] items = categories[category]