ArmyCyberInstitute / cmgr

CTF Challenge Manager
Apache License 2.0
18 stars 9 forks source link

Hidden links #35

Closed jrolli closed 2 years ago

jrolli commented 2 years ago

The normalization passes for challenge metadata lead to undesirable behavior for {{link('/') because it is translated into an empty anchor tag. The href information is populated correctly, but the leading / is trimmed by the capture in urlPathPattern (loader.go:68).

I recall having to drop the leading slash during early development because it caused issues with flask but it would be possible to reinsert it into the generated HTML for inside of the anchors while leaving it out of the href.