Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 2843 by Extensions' 'config/' and 'db/' admin links don't work when SITE_ROOT isn't '/'

* NOTE: For customer support, please post to                     *
*                             *
*                                                                *
*       Do not post confidential information in this bug report. *
*       If you need immediate support, please contact            *
*                             *

What version are you running?

* ReviewBoard
* djblets 1.7.8

What's the URL of the page containing the problem?

Any link to the config/ or db/ admin page of an extension


What steps will reproduce the problem?
1. Install reviewboard *not* on the root of the web server. eg: /reviews/
2. install an extension (eg: ReviewBot)
3. click on the 'Configure' or 'Database' links from the extension list admin page

What is the expected output? What do you see instead?

I expect to see the 'config/' or 'db'/ page, and instead I get a 404 with the following info:

Using the URLconf defined in djblets.util.rooturl, Django tried these URL patterns, in this order (irrelevant url patterns removed):

    ^reviews/ ^admin/extensions/ ^$
    ^reviews/ ^admin/ ^$
^reviews/ ^reviews/admin/extensions/reviewbotext.extension.ReviewBotExtension/config/ ^reviews/ ^reviews/admin/extensions/reviewbotext.extension.ReviewBotExtension/config/ ^reviews/ ^reviews/admin/extensions/reviewbotext.extension.ReviewBotExtension/db/

The current URL, reviews/admin/extensions/reviewbotext.extension.ReviewBotExtension/config/, didn't match any of these.

Note that if I manually enter (with the redundant '/reviews/') the page works.

I did some digging and this seems to be happening because djblets.extensions.base.ExtensionManager always prefixes the extension admin_urls with reverse('djblets.extensions.views.extension_list').lstrip('/') which ends up including the redundant '/reviews/' sub-url.

You received this message because you are subscribed to the Google Groups 
"reviewboard-issues" group.
To post to this group, send email to
To unsubscribe from this group, send email to
For more options, visit this group at

Reply via email to