17thshard / palanaeum

A website for collecting audio interviews and transcribing the questions & answers
GNU Affero General Public License v3.0
32 stars 17 forks source link

links to other wob in questions are broken in api #78

Open fbstj opened 4 years ago

fbstj commented 4 years ago

King of Herdaz stumbled upon https://coppermind.net/wiki/Cite:Arcanum-9385 where the links in the included preview are broken and link to nonexistent coppermind pages rather than the pages on the wob.copermind.net domain. this is because the WoB editor (and maybe something in the backend too?) normalises the wob.coppermind.net domain out of links to other wobs (and makes them relative even, instead of just absolute?) but then the API does not undo this action (probably because it's built into the editor?) and so all users (of the extremely popular API) cannot rely on those links without further finangling.

Hillshum commented 3 years ago

Is this just a matter of making the API add the domain back in?

Hillshum commented 3 years ago

Actually, after some time spent combing through the code I'm not seeing where the domain is getting stripped during save. Maybe better to just save the URLs intact?