Auto generated head link tags for blog listing

Hello,
In my blog listing pages, I’m having an issue with the auto generated tag in the head <link rel=“prev” href=“../page/1” />, when i’m currently in the page 2, i want to put the root link as prev link in head instead of “page/1” link, is there a way to achieve that ?

Thanks in advance.

Hi @AKhelladi ,
Hope you’re doing well.
I am a Software Engineer with Baskey and will be happy to help with this issue.
This is a little bit difficult to recreate and test on my end but I’m thinking there may be a work around you could investigate.
You could try creating a clone of the base.html, perhaps call it base-blog.html. This will be used as the base for the blog-listing and post pages. So in those templates, switch where it says to extend base.html to base-blog.html.
Then in the blog-base.html <head>, you can write your if statement based on the pagetitle or other parameter and insert your link there.
Hope this helps but again, this is difficult to test but might be worth looking into.
Let me know if you need further explanation or help with this.
Best regards,
Pauric
email: p.mcconnell@baskey.eu
linkedIn: https://www.linkedin.com/in/pauric-mc-connell/