# When next and last post links are redirected

**URL:** <https://forum.ghost.org/t/when-next-and-last-post-links-are-redirected/37639>\
**Category:** Using Ghost\
**Created:** [April 6, 2023, 11:14pm UTC](https://forum.ghost.org/t/when-next-and-last-post-links-are-redirected/37639 "2023-04-06T23:14:33Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![BillBennett](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/billbennett/32/19872_2.png) [@BillBennett](https://forum.ghost.org/u/BillBennett)\
**Post date:** [April 6, 2023, 11:14pm UTC](https://forum.ghost.org/t/when-next-and-last-post-links-are-redirected/37639/1 "2023-04-06T23:14:33Z")

</div>

This is quite an odd problem and it may be theme related, but here goes:

This week I restored a number of posts that were previously missing and redirects were set up to deal with external links to the relevant pages.

I restored the pages and deleted the redirects. The incoming links now go back to the original restored pages so do any internal links pointing to these posts from the main body copy on other posts.

However, and next and last post links to these pages still redirect four days after the redirects were deleted. If it is relevant, I’m using the Edition theme.

At a guess I’d say either these next and last links are cached… or they are generated at some point and not dynamically updated.

Is there a way to clear the cache or to regenerate the relevant links?

I wondered if editing the posts and resaving might refresh the links, but it doesn’t.

Here’s an example. The back link on this page should connect to

`https://billbennett.co.nz/microsoft-surface-sales-disappoint/`

but it redirects to

`https://billbennett.co.nz/pandemic-tablet-boom-rolls-over-into-2021/`

> **[Sometimes free is too high a price](https://billbennett.co.nz/free-high-price/)**
>
> Google says it is closing its free Google Reader service because of declining use.
> 
> 
> The company doesn’t make any money from its free web-based RSS reader, so its death doesn’t come as a surprise. After all, Google is a business, not a...

---

<div class="post-metadata">

**Author:** ![mjw](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/mjw/32/30781_2.png) [@mjw](https://forum.ghost.org/u/mjw)\
**Post date:** [April 7, 2023, 9:14am UTC](https://forum.ghost.org/t/when-next-and-last-post-links-are-redirected/37639/2 "2023-04-07T09:14:08Z")

</div>

The backlink goes to [Windows 8 is a flop](https://billbennett.co.nz/windows-8-flop/).

So, the issue isn’t with the backlinks, but the URL: `https://billbennett.co.nz/microsoft-surface-sales-disappoint/`.

This has a redirect to `https://billbennett.co.nz/pandemic-tablet-boom-rolls-over-into-2021/`.

---

<div class="post-metadata">

**Author:** ![BillBennett](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/billbennett/32/19872_2.png) [@BillBennett](https://forum.ghost.org/u/BillBennett)\
**Post date:** [April 7, 2023, 10:34am UTC](https://forum.ghost.org/t/when-next-and-last-post-links-are-redirected/37639/3 "2023-04-07T10:34:36Z")

</div>

I deleted the code for that redirect from redirects.json three or four days ago.

Why does it still redirect? Is there something else I need to do?

---

<div class="post-metadata">

**Author:** ![mjw](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/mjw/32/30781_2.png) [@mjw](https://forum.ghost.org/u/mjw)\
**Post date:** [April 7, 2023, 12:14pm UTC](https://forum.ghost.org/t/when-next-and-last-post-links-are-redirected/37639/4 "2023-04-07T12:14:24Z")

</div>

Are you using Cloudflare or any caching services?

---

<div class="post-metadata">

**Author:** ![BillBennett](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/billbennett/32/19872_2.png) [@BillBennett](https://forum.ghost.org/u/BillBennett)\
**Post date:** [April 7, 2023, 8:15pm UTC](https://forum.ghost.org/t/when-next-and-last-post-links-are-redirected/37639/5 "2023-04-07T20:15:18Z")

</div>

Yes. Cloudflare. I’ve purged the cache, but those links still redirect. Is it just a matter of time or is there something else I need to do?

---

<div class="post-metadata">

**Author:** ![BillBennett](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/billbennett/32/19872_2.png) [@BillBennett](https://forum.ghost.org/u/BillBennett)\
**Post date:** [April 7, 2023, 11:36pm UTC](https://forum.ghost.org/t/when-next-and-last-post-links-are-redirected/37639/6 "2023-04-07T23:36:22Z")

</div>

I’ve tried it with Cloudflare in developer mode, ie no cacheing and the pages still redirect.

Likewise, Cloudflare is paused and it still redirects. Could Ghost-Fastly be caching the pages?
