Læs også

The bottom navigation of the articles in a story.

How to "story"

A roundabout with funny text bits about which exit to take.
Taking the wrong direction

How is an URL resolved on WA?

4. februar 2016 af Stine Søndergaard

The structure

The total flow of the resolution of an URL is seen on the flow diagram.
Note: "Other content type?" is made for simplicity but it includes the following:

  • Story
  • Blog post
  • Competition
  • Contest
  • Gallery
  • Quiz

 

Examples:

Having a tag and a category with the same name
From the flowchart it can be seen that as there exists a category with the same name as the tag the URL is redirected to that category and the flow starts again from the top. I.e., /tags/sex --> /sex.
Following the "no" flow until "Is "some-path" a category?" is reached gives the three following outcomes:

  • If the category has a special panel assigned to it this will be shown.
  • If there are no special panel, but a default panel this will be shown.
  • If there are no panels it will yield an 404 error.
The flow when the tag has a category with identical name.
Resolve tag

 

Wanting to access a panel

The "no" flow is followed until it reaches "Is "some-path" a panel?". After this, five options are checked. If any of these are true the flow will continue to "Is "some-path" a page?".

  • Is there a category assigned to the panel?
  • Is there a tag assigned to the panel?
  • Is it a frontpage?
  • Is there a default tag assigned to the panel?
  • Is there a default category assigned to the panel?

If none of the above five are true the panel itself will be displayed.

The flow when a panel is displayed.
Resolve a panel

 

Having an article with an external link
The "no" flow is followed until "Is "some-path" an article?" is reached. As it has an external link the flow starts from the beginning with the new URL.

The flow of an article with an external link.
Resolve article

 

Get the complete flow diagram here as PDF: