Closed zacqed closed 2 years ago
@Harshitg Question about this line: <a href="**{{ url_for('.home') }}**">
Is that supposed to be your website home (e.g. not a flask-user extension)? I'd expect that to be true, and in this case you need to change ',home'
and '.view'
to 'home'
and 'view'
respectively (no dots).
When you put a .
in front of the string you pass to url_for
, that tells it to look for an endpoint in the current blueprint(which is user
blueprint and not your app). By leaving the .
off, you tell it to look for a endpoint in the app
.
ghost , thanks
Flask_user is breaking the URL links defined while include a header.html file outside of its own library. The header file works perfectly rendering all links across the site except for templates under flask_user. The example is as follows:
I have modified the register to include an header template as follows:
The sidebar within the header file goes something like this:
The .home and .view give error in logs leading to 500 Internal server error: The log says following
Any fix or help is appreciated