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

Bug: Tag is left behind when using in Custom Menu Items #280

Closed
8 of 11 tasks
sahinakkaya opened this issue Nov 30, 2023 · 3 comments
Closed
8 of 11 tasks

Bug: Tag is left behind when using in Custom Menu Items #280

sahinakkaya opened this issue Nov 30, 2023 · 3 comments

Comments

@sahinakkaya
Copy link

Prerequisites

  • I'm reporting the issue to the correct repository.
  • I am running the latest version of this plugin (if not, please upgrade first).
  • I checked the README.md and Wiki documentation but did not find my answer.
  • I searched to make sure that this issue had not already been reported.
  • I have, or I know someone who has, the ability and willingness to test the fix on a Moodle LMS-based site.
  • I am submitting no more than one bug report per issue ticket (please do not submit multiple bugs in one issue ticket).
  • I understand that support is provided by volunteer(s).

What happened?

This might be same as #278 but I am reporting it anyway to make us understand the situation better. When I use {ifminmanager}{/ifminmanager} in Custom Menu Items (Site Administration -> Appearance -> Theme Settings -> Custom Menu Items), the navbar is not correctly populated. If I am logged in as manager, the link will be something like <moodle-url>/<actual-endpoint>{/ifminmanager} If I am not logged in it will not even rendered correctly

What do you think should have happened?

I expected the link to be rendered correctly in all situations and go to the correct location when clicked.

Steps to reproduce

  1. Go to Site Administration -> Appearance -> Theme Settings -> Custom Menu Items
  2. Add a custom menu item like: {ifminmanager}My Custom Link|/my/courses{/ifminmanager}
  3. Save changes
  4. Custom link should be visible at the top but it will render incorrectly and/or the link will be wrong.

Screenshots

Logged in as Manager, the link is incorrect:

resim

Logged out. The link is incorrect and the menu item is not rendered correctly

resim

Moodle version

Moodle 4.2.3+ (Build: 20231020)

Installed Moodle UI Language packs.

  • English only
  • One or more other languages/regional dialects (specify below)
  • Other

If other language(s), please specify

No response

Workaround

No response

Additional information

No response

System information

No response

Code of Conduct

@michael-milette
Copy link
Owner

Sorry for the delay in following up with you. I could not reproduce this issue.

Best regards,

Michael

@sahinakkaya
Copy link
Author

It was my fault, the answer was in README. I missed it because there was more than one section about custom menus.

@michael-milette
Copy link
Owner

Hi @sahinakkaya ,

Good point. Perhaps I should consider merging them to make it easier to find information. Thank you for the feedback.

Best regards,

Michael

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

2 participants