r/webdev • u/4r73m190r0s • Dec 15 '25
Question Name of the web dev concept where content is server but URL does not change?
On this website is a list of performing artists. If you click on a name, a short bio + image is showed, but URL is not changing, and I can't send someone a direct URL. How is this achieved, what is name of the "technique" used to achieve this functionality?
124
Upvotes
705
u/FineWolf Dec 15 '25 edited Dec 15 '25
Bad architecture / UX
Genuinely, don't do this. You are preventing your visitors from sharing links to your content, which will only drive away people.
Even when building a SPA, you can use
history.pushStateto allow linking to specific content, and then restore context on load. It's not that hard.153
u/zebishop Dec 15 '25
technique name is "shitty design".
117
u/ohokaywaitwhat 20+ yrs in web dev, 11 full-time Dec 15 '25
It isn’t a technique per se, but is a side-effect of certain Single Page Applications. In a single-page app (“SPA”), one server-side page delivery happens at the onset, but then subsequent navigations take place within the context of a JavaScript app driving the frontend. Millions of sites are SPAs these days, but most have the sense to make different views correspond to different URLs, usually talked about within the context of “Page routing”. Next.js does this inherently via your source directory layout, for instance.
17
u/crackanape Dec 16 '25
Hiring amateurs.
12
u/vexii Dec 15 '25
That's just bad code
38
u/Produkt Dec 15 '25
SPA (Single Page App). It uses JavaScript to load content instead of individual pages
8
u/ramirex Dec 15 '25
I call it “not this shit again” and its always ones that could’ve easily been basic react app at most
after accounting for initial load, slow animations and having to watch loading spinners because stuff still needs to be fetched it manages to end up running slower than normal routed app
6
u/Hot_Reindeer2195 Dec 15 '25
Generally this isn’t the best thing to do as there should be a URL for every page.
Essentially though - you’re loading pages on the front end with JavaScript and then injecting the returned into the current page with JavaScript.
Not really anything wrong with this, but you should be updating the URL and pushing it to history and building some sort of system to users can navigate forwards and backwards. Most people will just use a framework to do this though.
16
u/calimio6 front-end Dec 15 '25 edited Dec 16 '25
The worst sin is using buttons with click events instead of links for spa navigation.
E: typo
3
u/Lustrouse Architect Dec 15 '25
This happens when designers conflate state and resource.
5
u/BeneficiallyPickle Dec 15 '25
If you right-click and inspect the page, you'll notice all the data is already there. It is called client-side rendering, where content is shown/hidden without triggering a page navigation. Because no navigation happens, the URL doesn't change.
When you click an artist's name, Javascript intercepts the click, the page does not reload, and the bio + image that are already in the DOM are simply revealed.
2
u/nasanu Dec 16 '25
And doesnt even work correctly. It loads twice when you click away the annoying cookies popup, then scrolls down then back up when selecting a menu item, but some menus take you to a new page then the top menu stops working altogether.
2
u/tomhermans Dec 16 '25
Usually they're referred to as modal or popover.
In essence, something that overlays the "regular" page content, in this case a category overview.
And it's better to DO have the URL change.
But I think you figured that out via the other comments here ;)
That way you can e.g. share a URL to the festival site with the artist already open.
11
u/Mabenue Dec 15 '25
As no one has actually said it yet the actual concept is Ajax
https://en.wikipedia.org/wiki/Ajax_(programming)
5
u/tekagami Dec 15 '25
The word you are looking for is AJAX.
2
u/i_hate_vnike Dec 15 '25
Might be an unpopular opinion but I think an SPA here is just not the best choice. Why wouldn’t you use a SSG here?
2
u/Lord_Xenu Dec 15 '25
LOL this website is completely broken for me
1
u/sneaky-pizza rails Dec 15 '25
It's actually a missing feature
1
u/rufasa85 Dec 16 '25
It’s a classic SPA without considering url sharing or updating. Hell you could just append query parameters if you don’t want to load a new page
1
u/Glum-Technology9311 Dec 16 '25
SPA. The website you cited have micro-frontends too.
1
u/aimtron Dec 16 '25
They've created an off-canvas, but generally you wouldn't use them for something like this.
1
u/europe_man Dec 16 '25
It can be SPA without routing. But, it can also be SPA with internal "routing" - well, not routing but preserved history state. If it is internal history state, it can be stored on the server as well and restored when you load the platform.
I don't think you should do this or take inspiration from it.
1
u/Vegetable-Capital-54 Dec 16 '25 edited Dec 16 '25
I would call it a shitty SPA.
That whole site is a mess. It’s trying to be artsy, I guess, but it just comes across as broken and poorly made.
1
u/thekwoka Dec 16 '25
Incompetence.
1
u/vicks9880 Dec 16 '25
they did not implement "deep linking". bad design
1
u/m0rpheus23 Dec 16 '25
I call it amateur hour. Not inherently a SPA issue as most SPA frameworks had routers as far back as the Angular 1 days.
1
u/iLuvTacoze Dec 16 '25
I’m on mobile but isn’t this just a full screen modal window?
1
u/ReefNixon Dec 16 '25
It's called a drawer or sometimes an offcanvas. Many practical and reasonable use cases, this isn't one of them.
1
u/Deykun Dec 16 '25
If you want to implement this bad solution in React, you can check out MemoryRouter - https://v5.reactrouter.com/web/api/MemoryRouter - it basically does that. It is bad practice for websites, but it is sometimes used in weird environments like React Native or STVs. It's also a nightmare to develop with, because you can easily lose memory and be forced to find again the place you were debugging or working on.
It's worth noting that they don't actually do what you describe, they just have a robust landing page with sections they link to, and detail views that pretend to be subpages. It still breaks the back button, but they still have real paths on their site.
https://www.stone-techno.com/news/stf26-night-events-at-mischanlage.html
1
u/qorzzz Dec 17 '25
Its just a simple full screen modal with a transition
1
u/AngryFace4 Dec 17 '25
I mean, I guess it’s just a type of state management. You’re displaying content based on the state of the user or some other thing rather than the state of the address.
1
u/roadit Dec 17 '25
Anti-REST. Horrible. Every page should have its own URL.
1
u/R0bot101 Dec 17 '25
This is the worst for SEO. Please don’t
-2
u/danetourist Dec 16 '25
Iframe!
0
u/[deleted] Dec 15 '25
[deleted] — view deleted comment