1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Number added in recent posts url....why?

Discussion in 'General XenForo Discussion and Feedback' started by Greg Swallow, Jun 27, 2013.

  1. Greg Swallow

    Greg Swallow New Member

  2. Brogan

    Brogan XenForo Moderator Staff Member

    This is the search count.

    It increase each search.
    Chris D likes this.
  3. Greg Swallow

    Greg Swallow New Member

  4. Chris D

    Chris D XenForo Developer Staff Member


    As Brogan explained, it is the search ID. It's nothing to do with a specific point in time. It's simply an auto incrementing ID number.

    All searches whether they are performed via New Posts or the normal search feature are cached against an ID number. You certainly wouldn't want to bookmark a New Posts search. Nor would you share a link to it. In fact, only you can access any of the above numbered URLs. If I try to click on any one of those it actually performs a brand new search.

    But, you could say, that it is a feature. Because if you have 10 pages of New Posts to go through you can go back to that New Posts search you've already performed and the benefit is a new search doesn't have to be done so you can keep going back to and working through that list of New Posts until such a time you want to perform a new one.

    So, it's a feature. Not a bug.

    Can I ask why you think it's even an issue to have a number of those URLs? Obviously you now know the technical reason they are there. But why did it even matter in the first place?
  5. Greg Swallow

    Greg Swallow New Member

    I see that is the case, trying the link in another browser makes a new search.
    It makes sense to me now that it is necessary to have the search stuck at a moment in time so that you could go to page 2, 3, etc and not have results that were on page 1 a minute ago, appear on page 2 a minute later.
    I'm looking at using Xenforo for some forums where a recent posts view of all the forum categories is quite commonly used in the current forums. I guess just from an aesthetic standpoint that I would rather the url's be something like:
    ...without the search count number showing up

    Is that possible?
  6. Chris D

    Chris D XenForo Developer Staff Member

    No it isn't possible.

    There really isn't a web application that exists that doesn't have some sort of identifier in most of their URLs. This can generally be done with static strings in URLs (e.g. removing index.php from all URLs) but IDs such as this are completely fundamental in finding content.

    The fact is, none of your users will care that there's a number in the URL. And let's be honest, it's not like they won't be used to seeing numbers in URLs:


    If it's not about your users and it's more about what you think looks good (or doesn't) you should probably re-evaluate that. You'll drive yourself insane :)

Share This Page