Redirect Subtechnique pages with dot separator instead of only forward slash
jondricek opened this issue · 0 comments
jondricek commented
It would be nice to be able to have redirection URLs set up for subtechniques such that their dot separator would go to the correct page. For example:
- T148 page: https://attack.mitre.org/techniques/T1548/
- T148.001 page: https://attack.mitre.org/techniques/T1548/001/
- Proposed redirect URL: https://attack.mitre.org/techniques/T1548.001/ (would go to main T148/001/ page above)
This should be able to be accomplished between a few sections of the code base as follows:
- Redirections module: https://github.com/mitre-attack/attack-website/tree/develop/modules/redirections
- Techniques module that generates redirections: https://github.com/mitre-attack/attack-website/blob/develop/modules/techniques/techniques.py#L24-L27