Comments (2)
Thank you for your response.
I posted the same question under the ckan issues list, and they were kind enough to respond. They let me know that:
The syntax for url_for changed as the different controllers were moved to Flask blueprints, instead of url_for(controller=controller, action=action) you need url_for(blueprint.view_function). Most cases are backwards compatible but this particular one is different because there is a new blueprint for dashboards.
They suggested that I update the code to:
<a href="{{ h.url_for('dashboard.index') }}">Control Panel</a>
So I've done so under /usr/lib/ckan/default/src/ckanext-openafrica/ckanext/openafrica/templates/header.html
from:
<a href="{{ h.url_for(controller='user', action='dashboard') }}">Control Panel</a>
to:
<a href="{{ h.url_for('dashboard.index') }}">Control Panel</a>
That seems to fix the issue. Thank you.
from ckanext-openafrica.
Hey @tchnlgst
As you may have guessed by now, openAFRICA is still running CKAN 2.7. We are also very interested in upgrading it to the latest CKAN release but we just haven't gotten around to it yet.
Looking at v2.8 changelog looks like there were a lot of changes that could cause the above, among them:
- Major Changes: New Flask blueprints migrated from old Pylons controllers: user, dashboard, feeds, admin and home (#3927, #3870, #3775, #3762)
- Minor Changes: Standardize on url_for (#3831)
Please start there and let us know what you find.
from ckanext-openafrica.
Related Issues (20)
- Use placeholder logo
- Include "suggest a dataset" functionality HOT 1
- Better define extension dependencies HOT 2
- Better social share meta tags info HOT 4
- Update the documentation for installing ckanext-openafrica. HOT 3
- Add Data Request button on openafrica home page. HOT 2
- Update documentation HOT 4
- Register button not present until you visit the Login page HOT 4
- Make openafrica more mobile responsive. HOT 1
- Add tests HOT 3
- UndefinedError: 'dict object' has no attribute 'tracking_summary' HOT 2
- Notification of profile update is partially hidden by menu bar HOT 2
- Show view counts on the packages and resources. HOT 1
- Move to using Sass
- Create QZ Atlas for Africa page
- Template for Creating Showcase Content HOT 1
- [Showcases] Improve landing page
- [Brand Template] Color Palette and Font Details
- Mobile Responsiveness
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ckanext-openafrica.