suttacentral / bilara

Our Computer Aided Translation software
10 stars 8 forks source link

fix search routing for Dhp etc. #64

Open sujato opened 4 years ago

sujato commented 4 years ago

Normally we can click on a search result and open the relevant text. However in Dhp this does not work, the URL is malformed.

Eg. I get this:

https://bilara.suttacentral.net/translation/dhp320_translation-en-sujato#dhp320:1

But it should be:

https://bilara.suttacentral.net/translation/dhp320-333_translation-en-sujato#dhp320:1
sujato commented 4 years ago

See also Sabbamitta's comment here, it seems the same bug occurs for the vagga-suttas on AN:

When I enter in the Bilara search field a search string like an2.13:2.3 and then want to click the link that takes me to that sutta it doesn’t work. I had repeatedly this with suttas from the AN Twos, and I suspect it has to do with sutta ranges. For single suttas these links work fine.

https://discourse.suttacentral.net/t/continuation-of-discussion-for-bilara-users/16477/161?u=sujato