Skip to content

Current edit description logic isn't enough #942

@Leonabcd123

Description

@Leonabcd123

In the find_description_edit_url function, we just check whether the dojo is official and is a repository. This check isn't enough, as there are some repos (e.g. the course ones), that are official, but when you click on the edit description button, it redirects to a non-existent page.

Suggestion: Add a field in the dojo.yml file that allows the creator to specify whether he wants the edit description button or not. Another way would be to just check whether that path exists before redirecting to it.

Another problem that I found is that repositories that have been relocated (like the arm dojo's repo, that originated in robwaz/arm-dojo, but has since been relocated to https://github.com/pwncollege/arm-dojo) are still the ones that the edit button redirects to, instead of the new repository.

Metadata

Metadata

Assignees

No one assigned

    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