trix_core: Added course foreignkey to permalink.