Live data from Hacker News

Examples of Great URL Design (2023)

blog.jim-nielsen.com

141–150 of 163 posts

Re: Examples of Great URL Design (2023)

#141

Earlier quoted context omitted.

I agree, but I think it's important to note that the date in the URL can also be misleading. For example, it's often assigned at time of creation. If that page or post gets updated years later, even if almost entirely rewritten, it still has the original date in the URL

> even if almost entirely rewritten, it still has the original date in the URL If we're talking about blogs/news, they don't ever get almost entirely rewritten. The original publication is the only date that matters, and it matters a lot. If we're talking about evergreen content like documentation, then of course you don't put dates in the URL. A small "last updated" on the page itself is appropriate there.

> If we're talking about blogs/news, they don't ever get almost entirely rewritten.

Unfortunately, this isn't the case. It should be the case IMHO, but it (currently) isn't. The SEO/marketing people nowadays (ab)use popular pages for the search rankings and update them regularly to keep the content fresh and highly ranked (since search engines give much preference to new content).

Also, even for strict blogs/news, it's not unusual for a particular post to be a draft for many months before publishing. Most serious blog will fix the date to match publish date, but that isn't what happens by default especially in Wordpress (which is the most important platform for blogs).

Re: Examples of Great URL Design (2023)

#142

Back when I was working on GOV.UK Verify we had URLs that looked something like /verify-passport for English and /cy/verify-passport for Welsh. I made the decision that if readable URLs was a design goal they should be readable in both languages, and ended up localising them all to (for example) /verify-passport and /gwirio-pasbort. No idea if anyone ever noticed, but sometimes it’s nice to sweat the small stuff.

I’m going to make a business website in 7+ languages and this comment makes me want to do the same thing with the URLs. Thanks!

Re: Examples of Great URL Design (2023)

#144

Earlier quoted context omitted.

Search engines usually have a date filter. Here's DDG searching "wordpress" between 2000 and 2005. https://duckduckgo.com/?q=wordpress&t=h_&df=2000-01-01..2005... I'm guessing you were looking for: https://wordpress.org/news/2004/01/cruft-free-uris-in-wp-10/ I assume Google supports something similar, but I've stopped using it.

How do search engines figure out the date of webpages that don't contain it in the metadata?

How do search engines figure out the date of webpages that don't contain it in the metadata?

Poorly.

I have a blog so old I titled it an "online diary." It pre-dates search engines, so they tend to date the diary entries (blog posts) based on first crawl. Which means lot of the dates presented by the search engines are off by several years.

Re: Examples of Great URL Design (2023)

#145

> website under a .is domain (which is for Iceland, apparently). I don’t super like repurposing country names like that. Including .io. It feels this disregards the actual meaning of the extension while ignoring some very legal consequences to be under Indian legal system instead of EU or US.

To be fair most countries rolling out ccTLDs these days aren't doing it so patriotic citizens can represent their home country - it's an international cash grab. They're fine with randoms from all over the world giving them money, so randoms from all over the world are welcome to use their ccTLDs.

Re: Examples of Great URL Design (2023)

#147
The Reuters links are an example of good links IMHO. They're not earth-shattering, and follow some fairly generic guidelines, but work quite well.

Format is reuters.com/:category/:headline:date

which is all you need to know what you're clicking on. For example, I don't need to describe this link in order for its contents - and its time-relevance - to be understood:

  https://www.reuters.com/world/us-navys-newest-air-to-air-missile-could-tilt-balance-south-china-sea-2024-08-14/
Edit: they are a bit long, though, I suppose

Re: Examples of Great URL Design (2023)

#149
post #138

I’m glad this article mentions GitHub, who have had some of the best URL design I’ve ever seen, and have done since they first launched. I use that ALL the time. I can navigate straight to any issue by typing a URL. I can switch to the “actions” view for a repo by adding /actions. I can see the file I’m looking at in a branch by editing the URL and swapping “main” for the branch name. All available via the UI as well…

I believe this is a (happy) legacy from Rails.

In rails, if you don't spend effort to undo, you get URLs that match your database setup in a RESTful way. For me, that's far to tight coupling, and problematic in other ways.

But the result is that without thinking about it, without a second of time spent on designing an URL structure, you get a very nice, consistent and clean one for free.

Post reply on HN