uccser / cs-field-guide

A free online interactive resource/textbook for high school students learning about computer science.
https://www.csfieldguide.org.nz
MIT License
348 stars 75 forks source link

Issue with chapter link template tags in markdown #889

Closed eAlasdair closed 5 years ago

eAlasdair commented 5 years ago

https://cs-field-guide-dev.appspot.com/en/chapters/coding-encryption/substitution-ciphers/

In this example, in the pink Tractability – problems that take too long to solve box at the end of the page, there is a link to a different chapter.

In the markdown file, this is tagged as: [whole chapter about tractability]('chapters:chapter' 'complexity-tractability')

However, instead of generating a link to the chapter, i.e: https://cs-field-guide-dev.appspot.com/en/chapters/complexity-tractability (Does not exist yet) it appends information to the link to the current page: https://cs-field-guide-dev.appspot.com/en/chapters/coding-encryption/substitution-ciphers/'chapters:chapter'%20'complexity-tractability'

eAlasdair commented 5 years ago

The same behaviour has been found for templates: [text]('chapters:chapter_section' 'chapter' 'section') and [text]('interactives:interactive' 'slug'?parameters)

eAlasdair commented 5 years ago

I listed useful information I found about the link syntax in #947

eAlasdair commented 5 years ago

For the specific example talked about in the description, the tag should be complexity-and-tractability, however this doesn't change the result