Fragment identifier

bdu

bdu

Associate
Joined
4 Jan 2019
Posts
3
Very thanks, Spunkey
Anything after the # in the URL is the fragment, as you've correctly stated. You can place literally anything here (so long as it's been URL encoded).
Yes, of course. But who does it process? Wikipedia (https://en.wikipedia.org/wiki/Fragment_identifier#Basics) writes:
When an agent (such as a Web browser) requests a web resource from a Web server, the agent sends the URI to the server, but does not send the fragment. Instead, the agent waits for the server to send the resource, and then the agent processes the resource according to the document type and fragment value.
Here we have the strange link again: https://en.wikipedia.org/wiki/Ice_age#/media/File:IceAgeEarth.jpg. When we click at it the browser asks the server for https://en.wikipedia.org/wiki/Ice_age, gets it and then (the browser!) processes the fragment #/media/File:IceAgeEarth.jpg. But what can the browser do with it? I guess it doesn't know anything about file system architecture of Wikipedia. How does it work? I'm still confused.
 
Back
Top Bottom