Change Page Title on Other User's Feeds

Words
224
Reading
1 min
9y
Listen to this post
~1 min

Change Page Title on Other User's Feeds

When you first open up Steemit.com, before you have created an account, you remain at the url https://steemit.com/ and are left on the Trending page. The Page Title is set to Trending Posts — Steemit.

image.png




When you return to Steemit while logged in, you are redirected to a url of the form https://steemit.com/@{username}/feed and the Page Title is set to Home — Steemit

image.png




But, if you view the same URL while logged out, or view the feed of any other user, the Page Title stays the same. I discussed this a little bit earlier today.

image.png

I'm not Ned! Not my home!




image.png

Only one of these is mine





This certainly isn't a breaking feature, but it can make it confusing if you look at the feeds of other users. It would be nice if the Page Title changed when it was appropriate to do so.


This would be a relatively easy thing to implement, since the Page Title is already being changed dynamically.

  1. When on a Feed page, check if the user is logged in
  2. If the user is logged in, and the username matches the username of the feed, display Home — Steemit
  3. Otherwise, display @{username}'s feed — Steemit

Benefits

  • Navigating Steemit becomes a little less confusing
  • Clearer separation of your home vs. a home

image.png

Nicer, right?





Thanks!



Posted on Utopian.io - Rewarding Open Source Contributors

Change Page Title on Other User's Feeds | Ecency