Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
karthikb351 opened this issue Oct 13, 2017 · 0 comments
Open
Assignees

Comments

@karthikb351
Copy link
Contributor

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 %}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants