Skip to content

Commit

Permalink
Update /certified paths to favor pretty links
Browse files Browse the repository at this point in the history
Redirect search ?category=<category-name> to /<category-name> except
when multiple categories are selected.
  • Loading branch information
carkod committed Jul 28, 2023
1 parent 7fa423f commit cef07c2
Show file tree
Hide file tree
Showing 5 changed files with 246 additions and 278 deletions.
12 changes: 6 additions & 6 deletions redirects.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -124,15 +124,15 @@ category/product/(server|ubuntu-server-edition)/?: /server
category/product/ubuntu-advantage/?: /support
category/product/ubuntu-light/?: http://lubuntu.net/
# old certification.ubuntu.com redirects
certified/desktop/?: "/certified?category=Desktop&category=Laptop"
certified/server/?: "/certified?category=Server"
certified/soc/?: "/certified?category=SoC"
certified/desktop/?: "/certified/desktops"
certified/server/?: "/certified/servers"
certified/soc/?: "/certified/socs"
certified/hardware/(?P<canonical_id>.*): "/certified/{canonical_id}"
certified/catalog/search/?: "/certified"
certified/desktop/models/?: "/certified?category=Desktop&category=Laptop"
certified/server/models/?: "/certified?category=Server"
certified/desktop/models/?: "/certified/desktops"
certified/server/models/?: "/certified/servers"
certified/iot/models/?: "/certified/iot"
certified/soc/models/?: "/certified?category=SoC"
certified/soc/models/?: "/certified/socs"
certified/why-certified/?: "/certified/why-certify"
certified/devices/?: "/certified/iot"
certification/?: "/certified"
Expand Down
Loading

0 comments on commit cef07c2

Please sign in to comment.