[ux, login] 404 on login after comment attempt
When I'm not logged in and attempt to comment on a line in a commit from the commit page, where the comment field would be is replaced by "You need to be logged in to comment. Login now". When I click the "Login now" link, I am directed to a 404 which says "No such commit exists for this repository".
I should be directed to the login page, with a redirect to the line I wanted to comment on after I log in.
"Login now" is producing this url:
Updated by Daniel D almost 5 years ago
I came across same problems while doing integrations, my solution was to make both url() and request.route_url use the same function which would try both pyramid/pylons for the route:
pylons_router = URLGenerator(config['routes.map'], environ) pyramid_router = request.route_url def pyramid_pylons_url_for(*args, **kw): try: return pyramid_router(*args, **kw) except (KeyError, TypeError): return pylons_router(*args, **kw) pylons.url._push_object(pyramid_pylons_url_for) request.route_url = pyramid_pylons_url_for