Kallithea issues archive

Issue #162: Repository menu is not clickable

Reported by:
State: resolved
Created on: 2015-10-07 12:35
Updated on: 2015-11-18 14:02



Since the upgrade to 0.3 clicking on a repository name in the repositories menu does nothing except an error in the javascript console:

TypeError: pyroutes is undefined

The relevant code is:

window.location = pyroutes.url('summary_home', {'repo_name': e.val});

I tried to clear the browser cache and restart the service without any success.




Comment by Mads Kiilerich, on 2015-10-07 14:41

It works for me and on https://kallithea-scm.org/repos/ .

Comment by domruf, on 2015-10-08 15:24

which browser in which version

Comment on 2015-10-08 15:26

Firefox 43.0.a2 and 41.0.1 (64-bit) Chrome 45.0.2454.101 (64-bit)

Comment by domruf, on 2015-10-08 19:28

Sorry can't reproduce this problem either.

Do you get any other errors in the browser console?

Comment on 2015-11-17 15:08

TypeError: pyroutes is undefined                                      repos:287:13

Comment by Mads Kiilerich, on 2015-11-17 17:18

That indicates that base.js not is being read and executed correctly. Can you verify that you can download the js file in your browser and that it contains "var pyroutes = (function("

Also, does https://kallithea-scm.org/repos/ work for you?

Comment on 2015-11-17 22:32

The import of pyroutes_map.js is not present in the html rendered.

https://kallithea-scm.org/repos/ works for me.

After further investigation there was a problem in my nginx configuration: the static files were still pointing on the 0.2 version. Fix the static path to the good egg version fix the bug.

## uncomment root directive if you want to serve static files by nginx
## requires static_files = false in .ini file
root /srv/kallithea/venv/lib/python2.7/site-packages/Kallithea-0.3-py2.7.egg/kallithea/public;

Comment on 2015-11-17 22:33

If 'static_files = false' in the configuration, check the nginx configuration after each upgrade.

Comment on 2015-11-18 14:02

Note added in the pull request #189