Previous and Next links not working in Milindapañha

The “PREVIOUS” and “NEXT” links that appear at the bottom of the page for each sutta work accurately in all the collections that I have looked through, but they don’t work in Mil (Milindapañha). E.g., take Mil3.1.1. It has no “previous” link, and the “next” link that is present jumps on to Mil3.1.10 (not mil3.1.2 as it should) which, in turn, links nowhere itself. This seems to be consistent throughout the entirety of Mil, though, of course, I haven’t checked everything.

When working properly, this is a really useful feature on the rest of SC, since it means when looking through a section of suttas, one can just click on the links to go to next or previous, as opposed to going up to URL and entering a new number.

Has this issue been raised before? If so, is anyone working on fixing it?

Thanks

@snowbird has suggested to me that @hongda might be the right person to look at this.

2 Likes

Hi @johnk Thank you for you feedback, let me check it.

2 Likes

I can confirm that https://suttacentral.net/mil3.1.1/en/kelly next does go to https://suttacentral.net/mil3.1.10/en/kelly. Mil3.1.2, 3.1.3 (and more) have no previous or next.

However it appears to be working in Mil4.

@HongDa, can you tell what is going on, or would you like someone to list out exactly what is working and is not working?

Isn’t this the file that determines prev/next?

2 Likes

Hi @Snowbird Bhante

It seems to be a bug, I’m looking for the cause.

5 Likes

A post was merged into an existing topic: SuttaCentral Search Bugs :fly:

Hi @johnk @Snowbird
I have fixed this issue and rewritten the relevant code and added related test code.
which has been pushed in staging:

e.g.

https://staging.suttacentral.net/mil3.1.1?view=normal&lang=en

or

https://staging.suttacentral.net/mil3.1.1/en/kelly?lang=en&layout=plain&reference=none&notes=asterisk&highlight=false&script=latin

3 Likes

works for me! Thank you!

1 Like

And it’s working well for me too. You’re a champion @HongDa! Thanks very much.

3 Likes

Hi @johnk @Snowbird

The latest update has been pushed to Production server:

e.g.

https://suttacentral.net/mil3.1.1/en/kelly?lang=en&layout=plain&reference=none&notes=asterisk&highlight=false&script=latin

4 Likes

After doing a crtl + shift + R it works great!

Thanks for all your hard work!

3 Likes

Ditto that! All looks good to me, too. Much appreciated, @hongda!

1 Like