# Url to last stopped reading position?

**URL:** https://meta.discourse.org/t/url-to-last-stopped-reading-position/133114
**Category:** Support
**Created:** [November 11, 2019, 2:33pm UTC](https://meta.discourse.org/t/url-to-last-stopped-reading-position/133114 "2019-11-11T14:33:58Z")
**Posts on this page:** 17
**Page:** 1

<div class="post-metadata">

### Author: ![knewt](https://avatars.discourse-cdn.com/v4/letter/k/76d3ee/32.png) [@knewt](https://meta.discourse.org/u/knewt)
#### Post date: [November 11, 2019, 2:33pm UTC](https://meta.discourse.org/t/url-to-last-stopped-reading-position/133114/1 "2019-11-11T14:33:58Z")

</div>

Hi,

I’ve just got a new Discourse forum pretty much up and running, but have question from a member that I can’t figure out the solution to. The community is moving from another forum, and on that software you can get a url to a topic that will take you to the most recently read point, which people then often bookmark in their browser. I haven’t been able to spot how to do that in Discourse though, anyone have any ideas?

Thanks,

Jody

---

<div class="post-metadata">

### Author: ![maiki](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/maiki/32/233950_2.png) [@maiki](https://meta.discourse.org/u/maiki)
#### Post date: [November 11, 2019, 8:18pm UTC](https://meta.discourse.org/t/url-to-last-stopped-reading-position/133114/2 "2019-11-11T20:18:51Z")

</div>

Discourse does that for me automagically. When I click on a topic, it takes me to where I was last reading. Is that what you refer to? 🤔

---

<div class="post-metadata">

### Author: ![knewt](https://avatars.discourse-cdn.com/v4/letter/k/76d3ee/32.png) [@knewt](https://meta.discourse.org/u/knewt)
#### Post date: [November 11, 2019, 9:27pm UTC](https://meta.discourse.org/t/url-to-last-stopped-reading-position/133114/3 "2019-11-11T21:27:45Z")

</div>

I’m afraid not. The url it takes you to when you click on a topic in the topic list, is a url specific to where you were last reading, not a url that says “take me to where I last was”. So if you bookmark that, and then view some more of the topic, and then come back to that bookmark, it’ll take you to the same place you went to originally, not where you most recently left off. I’m after a generic “where I last was for this topic” url that can be stored in the browser and will keep on working no matter how much of the topic gets read.

---

<div class="post-metadata">

### Author: ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)
#### Post date: [November 11, 2019, 10:20pm UTC](https://meta.discourse.org/t/url-to-last-stopped-reading-position/133114/4 "2019-11-11T22:20:17Z")

</div>

They can bookmark topics using the below:

 ![image](https://global.discourse-cdn.com/meta/original/3X/9/a/9ad0db6a4f82a640575e9075dac5ee52bb388e71.jpeg)

And the timestamp on each reply includes a link to the specific post.

 ![image](https://global.discourse-cdn.com/meta/original/3X/c/2/c260a19296589e509eca984c1b5bfb75ed6f599a.jpeg)

---

<div class="post-metadata">

### Author: ![knewt](https://avatars.discourse-cdn.com/v4/letter/k/76d3ee/32.png) [@knewt](https://meta.discourse.org/u/knewt)
#### Post date: [November 11, 2019, 10:27pm UTC](https://meta.discourse.org/t/url-to-last-stopped-reading-position/133114/5 "2019-11-11T22:27:41Z")

</div>

Doesn’t that bookmark record the specific point in the topic though? So they’d have to explicitly add a new bookmark before moving away every single time, right?

---

<div class="post-metadata">

### Author: ![Remah](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/remah/32/70590_2.png) [@Remah](https://meta.discourse.org/u/Remah)
#### Post date: [November 11, 2019, 10:48pm UTC](https://meta.discourse.org/t/url-to-last-stopped-reading-position/133114/6 "2019-11-11T22:48:56Z")

</div>

No it doesn’t and yes they would.

AFAIK, Discourse doesn’t store the last topic visited but does store the last visit timestamp for each topic (`topic_users.last_visited_at`) so it should be possible to find the latest topic visited and then display it. But this will require a plug-in or an external widget that calls the Discourse API.

The following material is just for completeness on this topic.

As already said, the closest to what you want is to use bookmarks:

- Bookmark a topic. The bookmark will return you to the first post unless you have read the entire topic already in which case you will be at the last post. But the timeline can show a back button to allow you to return to last read post in that topic - see the far right of this screenshot:  

- Bookmark a post will, by definition, allow you to return to the specific post. [Combinations of topic and post bookmarks are discussed here](https://meta.discourse.org/t/bookmark-behavior-in-posts-and-topics/117876/11).

- [Bookmark text in a post using a plug-in](https://meta.discourse.org/t/auto-bookmarks-plugin/110250).

As you pointed out, bookmarks have two failings for your purpose:

- Bookmarks normally require user action to set them unless a plug-in or other software is used to create them.

- Bookmarks always return to the specific topic (i.e. first post) or the specific post that was selected by the user. There is no option to have a bookmark that returns to a topic or post that is determined by software at the time the bookmark is accessed.

The URL you are talking about can always bring up the last post read because the forum software automatically stores that data. This is useful because we don’t always know when we will stop reading in the forum - it can be interrupted by system reboot, system user or application user logout or an unexpected crash.

Discourse doesn’t have an option to return to the last post viewed but I think that it would be a useful feature.

P.S.  
However, Discourse does have a feature that shows you which topics you viewed in your last visit even in Bookmarks so that helps to show you which topic you might have last looked at:

 ![image](https://global.discourse-cdn.com/meta/original/3X/b/0/b0a57b7394a9131cd5fab7a043404a545f7cf23d.png)

Others have looked at extracting the last visit data, e.g.:

> [@Extracting 'last visit' info by using the API](https://meta.discourse.org/t/extracting-last-visit-info-by-using-the-api/52618):
>
> Is there currently a way to extract the ‘last visit’ marker location (as in, which is the newest post after the last visit) via the API? I have had a look at what I get from hitting the ‘latest.json’ endpoint, and was assuming there might be a way to derive the location of the last visit from there, but I don’t think that info is in there. Or is it? Any help is greatly appreciated on this. Thanks! PS: In case you’re wondering about the use case, we’re just trying to integrate discourse better i…

---

<div class="post-metadata">

### Author: ![knewt](https://avatars.discourse-cdn.com/v4/letter/k/76d3ee/32.png) [@knewt](https://meta.discourse.org/u/knewt)
#### Post date: [November 11, 2019, 11:00pm UTC](https://meta.discourse.org/t/url-to-last-stopped-reading-position/133114/7 "2019-11-11T23:00:32Z")

</div>

Thanks for that in-depth answer, really helpful of you, even if the end result is indeed that there’s currenty no way to do what we’d like

> [@Remah](#):
>
> Discourse doesn’t have an option to return to the last post viewed but I think that it would be a useful feature.

Indeed. Annoyingly I’ve never coded Ruby or I’d have a go myself. I’m guessing it might be too much work, since the topic lists figure out the what the last post read was in a topic and generate a relevant url, so you could have a new url, like t/topic-title/133114/latest that then redirects to the right place

---

<div class="post-metadata">

### Author: ![knewt](https://avatars.discourse-cdn.com/v4/letter/k/76d3ee/32.png) [@knewt](https://meta.discourse.org/u/knewt)
#### Post date: [November 11, 2019, 11:02pm UTC](https://meta.discourse.org/t/url-to-last-stopped-reading-position/133114/8 "2019-11-11T23:02:31Z")

</div>

Re the PS, hmm, I’ll take a look at it. The thing is that we have numerous topics that will go on for literally hundreds of posts, and you might not have looked at specific topics for a couple of weeks or more, and then want to take another look, and be able to go there directly from a browser bookmark.

---

<div class="post-metadata">

### Author: ![Remah](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/remah/32/70590_2.png) [@Remah](https://meta.discourse.org/u/Remah)
#### Post date: [November 11, 2019, 11:05pm UTC](https://meta.discourse.org/t/url-to-last-stopped-reading-position/133114/9 "2019-11-11T23:05:58Z")

</div>

But then the URL is only useful for one topic.

Whereas the Latest view is perfect for that scenario because all the numerous topics with edits or new posts since the last visit above will appear above the last visited line

---

<div class="post-metadata">

### Author: ![knewt](https://avatars.discourse-cdn.com/v4/letter/k/76d3ee/32.png) [@knewt](https://meta.discourse.org/u/knewt)
#### Post date: [November 11, 2019, 11:07pm UTC](https://meta.discourse.org/t/url-to-last-stopped-reading-position/133114/10 "2019-11-11T23:07:24Z")

</div>

Well, yeah, but there might have been 40-50 or more topics that have changed since the last time you went in 🙂

---

<div class="post-metadata">

### Author: ![Remah](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/remah/32/70590_2.png) [@Remah](https://meta.discourse.org/u/Remah)
#### Post date: [November 11, 2019, 11:17pm UTC](https://meta.discourse.org/t/url-to-last-stopped-reading-position/133114/11 "2019-11-11T23:17:57Z")

</div>

Sorry, I misread your previous reply.

You were still saying that the user wants to go back to the last conversation they were reading/having on their last visit even if that topic has no changes.

This is the auto resume feature that I would like but I can’t see the Discourse team going for it.

---

<div class="post-metadata">

### Author: ![knewt](https://avatars.discourse-cdn.com/v4/letter/k/76d3ee/32.png) [@knewt](https://meta.discourse.org/u/knewt)
#### Post date: [November 11, 2019, 11:21pm UTC](https://meta.discourse.org/t/url-to-last-stopped-reading-position/133114/12 "2019-11-11T23:21:23Z")

</div>

Not exactly I don’t think. There’ll be lots of different topics people will be following. Within a specific category on the forum, there are dozens and dozens of long-term hundreds and hundreds of post topics, of which lots of people follow loads. And they obviously like to pop in, read a load of posts, but maybe not all the way to the end, then come back later to read some more. And some people like to browser-bookmark these

---

<div class="post-metadata">

### Author: ![knewt](https://avatars.discourse-cdn.com/v4/letter/k/76d3ee/32.png) [@knewt](https://meta.discourse.org/u/knewt)
#### Post date: [November 11, 2019, 11:23pm UTC](https://meta.discourse.org/t/url-to-last-stopped-reading-position/133114/13 "2019-11-11T23:23:21Z")

</div>

I think the bookmarks tab might be a reasonable alternative though, since you were indeed right, that view does indeed appear to take you to where you left off, and can be filtered by category as well.

Thank you.

---

<div class="post-metadata">

### Author: ![maiki](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/maiki/32/233950_2.png) [@maiki](https://meta.discourse.org/u/maiki)
#### Post date: [November 11, 2019, 11:27pm UTC](https://meta.discourse.org/t/url-to-last-stopped-reading-position/133114/14 "2019-11-11T23:27:44Z")

</div>

> [@knewt](#):
>
> And they obviously like to pop in, read a load of posts, but maybe not all the way to the end, then come back later to read some more. And some people like to browser-bookmark these

In the meantime, I’d direct the user to `/unread`; I normally set my homepage to the unread page. 🙂

---

<div class="post-metadata">

### Author: ![knewt](https://avatars.discourse-cdn.com/v4/letter/k/76d3ee/32.png) [@knewt](https://meta.discourse.org/u/knewt)
#### Post date: [November 11, 2019, 11:36pm UTC](https://meta.discourse.org/t/url-to-last-stopped-reading-position/133114/15 "2019-11-11T23:36:18Z")

</div>

Since the PS on your in-depth answer appears to be the solution, I’ll select that post as the solution. It was a great post even without that tbh, really informative.

---

<div class="post-metadata">

### Author: ![Remah](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/remah/32/70590_2.png) [@Remah](https://meta.discourse.org/u/Remah)
#### Post date: [November 11, 2019, 11:45pm UTC](https://meta.discourse.org/t/url-to-last-stopped-reading-position/133114/16 "2019-11-11T23:45:34Z")

</div>

> [@knewt](#):
>
> It was a great post even without that tbh, really informative.

Thanks for the encouragement as I’m intentionally trying to create more helpful posts by covering the options.

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [December 11, 2019, 11:49pm UTC](https://meta.discourse.org/t/url-to-last-stopped-reading-position/133114/17 "2019-12-11T23:49:22Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
