Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Other Discussions
  3. Site Bugs / Suggestions
  4. Suggestion: Put thread title in the HTML page title for discussion messages

Suggestion: Put thread title in the HTML page title for discussion messages

Scheduled Pinned Locked Moved Site Bugs / Suggestions
htmldiscussionannouncement
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    markrlondon
    wrote on last edited by
    #1

    Reason: I was looking for a particular thread in my browser history but could only see a list of "The Insider News - Codeproject" and "The Lounge - Codeproject" and the like. Being able to see the actual thread titles would have been very useful.

    Richard DeemingR 1 Reply Last reply
    0
    • M markrlondon

      Reason: I was looking for a particular thread in my browser history but could only see a list of "The Insider News - Codeproject" and "The Lounge - Codeproject" and the like. Being able to see the actual thread titles would have been very useful.

      Richard DeemingR Offline
      Richard DeemingR Offline
      Richard Deeming
      wrote on last edited by
      #2

      If you navigate through the messages in a forum, the URL and title don't update. The messages have already been loaded, and are simply shown or hidden using Javascript. The site would have to use the history API[^] to make the URL and title update without loading a new page.


      "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer

      "These people looked deep within my soul and assigned me a number based on the order in which I joined" - Homer

      M C 2 Replies Last reply
      0
      • Richard DeemingR Richard Deeming

        If you navigate through the messages in a forum, the URL and title don't update. The messages have already been loaded, and are simply shown or hidden using Javascript. The site would have to use the history API[^] to make the URL and title update without loading a new page.


        "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer

        M Offline
        M Offline
        markrlondon
        wrote on last edited by
        #3

        Richard Deeming wrote:

        If you navigate through the messages in a forum, the URL and title don't update. The messages have already been loaded, and are simply shown or hidden using Javascript.

        This is true only if you go to a thread listing page like this one, [^], and look through the threads listed therein. What I mean is this: If you click on the "View the X replies to this message" or "View the reply to this message" links then a page opens showing messages in the thread you clicked on. This is where each thread has a unique URL and could imo do with having the thread title added to the HTML page title so as to be able to tell them apart in the browser history (and in the browser title bar or tab, for that matter). For example, this thread (1) The Insider News[^] and this thread (2) The Insider News[^] both have the same page title and are indistinguishable in the browser history but are in fact distinct and different URLs and link to distinct and different threads. The primary difference in the URL is the "tid" parameter. Clearly the server does know which thread is which at the time it generates and serves these pages (otherwise it couldn't put the relevant thread contents, and only the relevant thread contents, in the page), so won't need the history API. To be clear, I'd like to see the page titles for the two threads above displayed as: (1) The Insider News - Google AI executive sees a world of trillions of devices untethered from human care[

        1 Reply Last reply
        0
        • Richard DeemingR Richard Deeming

          If you navigate through the messages in a forum, the URL and title don't update. The messages have already been loaded, and are simply shown or hidden using Javascript. The site would have to use the history API[^] to make the URL and title update without loading a new page.


          "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer

          C Offline
          C Offline
          Chris Maunder
          wrote on last edited by
          #4

          Nah, you just use

          document.title = "This is a page title.";

          We used to have it do that, but I think I removed it because it actually made it hard to work out which tab was the lounge and which was an article. Further, it needs to only change the title for dedicated forum pages, not when the forum is part of another item such as an article

          cheers Chris Maunder

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups