mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Content server: Fix --url-prefix not used for links in the book details view.
This commit is contained in:
parent
c756509cb3
commit
2425e2c09b
@ -49,6 +49,8 @@ class DispatchController(object): # {{{
|
|||||||
elif self.prefix:
|
elif self.prefix:
|
||||||
self.dispatcher.connect(name+'prefix_extra', self.prefix, self,
|
self.dispatcher.connect(name+'prefix_extra', self.prefix, self,
|
||||||
**kwargs)
|
**kwargs)
|
||||||
|
self.dispatcher.connect(name+'prefix_extra_trailing',
|
||||||
|
self.prefix+'/', self, **kwargs)
|
||||||
self.dispatcher.connect(name, route, self, **kwargs)
|
self.dispatcher.connect(name, route, self, **kwargs)
|
||||||
self.funcs.append(expose(func))
|
self.funcs.append(expose(func))
|
||||||
|
|
||||||
|
@ -695,8 +695,8 @@ class BrowseServer(object):
|
|||||||
for tag in dbtags:
|
for tag in dbtags:
|
||||||
tval = ('<a title="Browse books by {3}: {0}"'
|
tval = ('<a title="Browse books by {3}: {0}"'
|
||||||
' href="{1}" class="details_category_link">{2}</a>')
|
' href="{1}" class="details_category_link">{2}</a>')
|
||||||
href='/browse/matches/%s/%s' % \
|
href='%s/browse/matches/%s/%s' % \
|
||||||
(quote(tag.category), quote(str(tag.id)))
|
(self.opts.url_prefix, quote(tag.category), quote(str(tag.id)))
|
||||||
vals.append(tval.format(xml(tag.name, True),
|
vals.append(tval.format(xml(tag.name, True),
|
||||||
xml(href, True),
|
xml(href, True),
|
||||||
xml(val if len(dbtags) == 1 else tag.name),
|
xml(val if len(dbtags) == 1 else tag.name),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user