Add /tag/* rewrite to serve instructions about NFC/QR/etc. tags (#14242)

This commit is contained in:
Zac West 2020-08-13 09:00:17 -07:00 committed by GitHub
parent 2bbe4f9135
commit 5ee1aedce7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 32 additions and 0 deletions

View File

@ -2120,6 +2120,10 @@
# Redirect old /demo to new demo page
/demo https://demo.home-assistant.io
# Functionality-required redirects
# This is a 200 so /tag/anything is a valid URL
/tag/* /tag 200
# Lovelace documentation
/lovelace/entity-button /lovelace/button
/lovelace/views /lovelace/dashboards-and-views

28
source/tag/index.markdown Normal file
View File

@ -0,0 +1,28 @@
---
title: "URL-Based Tag"
description: "The landing page for URL-based tags"
sidebar: false
---
You've reached this page because you navigated to an NFC, QR Code, or other URL-based tag in the format `https://www.home-assistant.io/tag/{tag}`. When the Home Assistant app is installed, it will [handle the tag](https://companion.home-assistant.io/docs/integrations/universal-links/).
## iOS
If you arrived here after scanning a tag on iOS, and you have the [Home Assistant Companion App](https://companion.home-assistant.io) installed, you may need to activate Universal Links:
1. Long-press on [this link](https://www.home-assistant.io/tag/example_from_documentation)
1. Choose "Open in 'Home Assistant'"
1. Attempt to scan the tag again
If you do not have it, you must [install the iOS app](https://apps.apple.com/us/app/home-assistant/id1099568401?mt=8) for these tags to function.
## Android
If you arrived here after scanning a tag on Android, and you have the [Home Assistant Companion App](https://companion.home-assistant.io) installed, you may need to change the link settings.
1. Launch Settings and navigate to "Apps & Notifications", revealing the "Advanced" section if necessary
1. Navigate to "Default apps" and then "Opening links"
1. Open the "Home Assistant" settings and choose "Clear defaults"
1. Attempt to scan the tag again, choosing to open in Home Assistant
If you do not have it, you must [install the Android app](https://play.google.com/store/apps/details?id=io.homeassistant.companion.android) for these tags to function.