-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
Improve uniqueness of menu item Id's #45
Comments
We need to consider the ID-Less state and how that may or may not affect scanning tools. |
I had a look at this and thought it should be possible to concatenate the
Would that be sufficient for now? I could provide a commit and pull request if so. |
Not everything has a stage, so that may be limited. Maybe better to prepend the category and/or use the ids (numerical) generated from the lessonMenu service. That's the short term. Longer term, I think I'd rather remove IDs out of the DOM on those menu items. That's a separate issue/effort though. |
I completely agree on the long term. On the short term, I am still new to the code base of the application so I might have missed something obvious but here is my analysis of the possibilities at the moment. The stage id's generated in There is also the
I fint that prepending the category
I think I might be most fond of the The following commit uses simple concatenation to build the id's. If we do not like string building in this way a utility function could be created in |
stale, closing |
Would be better to operate ID-less and that may happen in a refactor of the MenuView later, but for now, need to improve uniqueness of menu item id's (e.g. we have two 'Stage 1: Stored XSS' lessons and the ID is made deterministically from the name (only) currently.
The text was updated successfully, but these errors were encountered: