Skip to content

Links to a URLs that might not exist in MUI's navigation component #169

Open
@karthikb351

Description

@karthikb351

If organizations are available, there is a link to the /profile URL - Shouldn't this use g.user.profile_url? (like in the else condition)

Additionally, {{ org.link }} gives you a relative path. Like /fragments/.
The client might not have org pages at that URL. Are these supposed to map to the org URL on Lastuser?

{% if orgs %}
<a href="/profile">My profile</a></li>
{%- for org in orgs %}
<li><a href="{{ org.link }}">{{ org.title }}</a></li>
{%- endfor %}
{%- else %}
<a href="{{ g.user.profile_url }}" title="{{ g.user.pickername }}">{{ g.user.fullname }}</a>
{% endif %}

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions