banool / auslan_dictionary

Code for the app, scripts, and site for Auslan Dictionary
https://auslandictionary.org
GNU General Public License v3.0
12 stars 3 forks source link

Use gorouter with named routes #119

Closed banool closed 1 year ago

banool commented 1 year ago

The intent with this is to enable deeplinking into the app. Updating the routing was long overdue anyway, so this is a perfect excuse to do some of that 😛 This PR doesn't introduce this kind of declarative routing beyond just the base pages though.

I've tested at least on iOS that this works:

xcrun simctl openurl booted auslan://auslan_dictionary.com/lists

You can also specify a specific search query:

xcrun simctl openurl booted 'auslan://auslan_dictionary.com/search?query=friend'

You can also set whether to immediately navigate to the first matching query:

xcrun simctl openurl booted 'auslan://auslan_dictionary.com/search?query=friend&navigate_to_first_match=true'