Skip to content

Commit

Permalink
tweak regex
Browse files Browse the repository at this point in the history
  • Loading branch information
i0sea committed Sep 26, 2023
1 parent 0b34b30 commit 23d6eef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/site/assets/static/robots.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ Disallow: /*?*preview*&vid=*
Disallow: /schedules/*/line?*date*
Disallow: /org/*
Disallow: /charlie/*
Disallow: /policies/terms-use-charlie/*
Disallow: /policies/terms-use-charlie*
Disallow: /charlieapp
Disallow: /learnmore-transfer
2 changes: 1 addition & 1 deletion apps/site/lib/site_web/templates/layout/app.html.eex
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<meta name="robots" content="noindex, nofollow">
<% end %>
<%= # hide any page in /policies/terms-use-charlie directory from search engines
if @conn.request_path == "/policies/terms-use-charlie" || String.slice(@conn.request_path, 0..27) == "/policies/terms-use-charlie/" do %>
if @conn.request_path == "/policies/terms-use-charlie" || String.slice(@conn.request_path, 0..27) == "/policies/terms-use-charlie" do %>
<meta name="robots" content="noindex, nofollow">
<% end %>
<% title = if Phoenix.Controller.view_template(@conn) == "404.html", do: "Page Not Found | MBTA - Massachusetts Bay Transportation Authority", else: title_breadcrumbs(@conn) %>
Expand Down

0 comments on commit 23d6eef

Please sign in to comment.