kanso / kanso-topbar

Provides resources for a standard Kanso topbar
2 stars 1 forks source link

couchapps with no _rewrite, but are still accessed directly #2

Open ryanramage opened 12 years ago

ryanramage commented 12 years ago

Just tried added a topbar to a traditional couchapp which does not have rewrites, but has a path like:

http://localhost:5984/focus/_design/focus/index.html

Clicking on the icon to return to the dashboard fails because it assumes the dashboard in on the root. I guess we should detect for apps with direct access. Maybe instead of _rewrite, we look for _design?

caolan commented 12 years ago

The kanso-topbar package will search for an existing dashboard at '/' then at '/dashboard/_design/dashboard/_rewrite/'. If neither is found it uses '/'. Rewrites shouldn't have anything to do with it.

Do you have a dashboard installed? If so, where?