Merge pull request #164 from matrix-org/make_room_links_valid
Make the links we emit for room URLs validpull/21833/head
						commit
						c053f90b18
					
				|  | @ -114,6 +114,17 @@ matrixLinkify.options = { | |||
|                     } | ||||
|                 }; | ||||
|         } | ||||
|     }, | ||||
| 
 | ||||
|     formatHref: function (href, type) { | ||||
|         switch (type) { | ||||
|              case 'roomalias': | ||||
|                  return '#/room/' + href; | ||||
|              case 'userid': | ||||
|                  return '#'; | ||||
|              default: | ||||
|                  return href; | ||||
|         } | ||||
|     } | ||||
| }; | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	 David Baker
						David Baker