From a0e2b1c5b039d8182b1e81b50167e27cf10177ec Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 21 Jun 2021 17:09:44 +0530 Subject: [PATCH] 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) --- src/calibre/srv/opds.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/srv/opds.py b/src/calibre/srv/opds.py index d0b4685fcf..72dc5cfae1 100644 --- a/src/calibre/srv/opds.py +++ b/src/calibre/srv/opds.py @@ -596,7 +596,7 @@ def opds_categorygroup(ctx, rd, category, which): category_name = meta.get('name', which) which = from_hex_unicode(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) items = categories[category]