I just found myself in a weird situation: all my components were listed, but whenever i clicked on the component title or edit link i got a not found error:
The reason is, because somehow i ended up at
admin/config/workflow/rules/components/manage
instead of
admin/config/workflow/rules/components
What happens is, that if you go to a sub path of the components page, it will still list all the components for you, but their links are just wrong / they get appended to whatever your current URL is.
so you'd end up on pages like
admin/config/workflow/rules/components/manage/manage/rules_commerce_billy_set_to_invoiced
I couldn't reproduce this bug for the page of reaction rules (admin/config/workflow/rules).
edit: users are likely to run into this problem, because of the /manage link is listed as a duplicate breadcrumb of the components listing page when editing a component.
Comment | File | Size | Author |
---|---|---|---|
#2 | 2146549-manage-path-2.patch | 799 bytes | cafuego |
Comments
Comment #1
dasjoComment #2
cafuego CreditAttribution: cafuego commentedIt looks like the RulesPluginUI::path() method always appends "/manage" to the base path it uses to generate sub-links on the overview page, and for components at least that base path is set to the current path.
That /manage at the end of the current path possibly only happens if your (admin) theme shows breadcrumbs and generates a crumb for each component of the path. Shiny certainly does that.
Attached patch tests if the base path already ends in "/manage" and doesn't append it this is the case. Not sure if this is the proper way to fix it, but as a workaround it's saving me a lot of time.
Comment #3
kaizerking CreditAttribution: kaizerking commentedThis should be committed my site log is filled with page not found notices because of this issue
Comment #4
cafuego CreditAttribution: cafuego commented@kaizerking Can you flip the issue to RTBC status?
Comment #5
kaizerking CreditAttribution: kaizerking commentedComment #8
fagoThx, committed.