Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Open app with url from outside the app #3004

Open
Firefly7-7 opened this issue Apr 19, 2024 · 0 comments
Open

[Feature Request] Open app with url from outside the app #3004

Firefly7-7 opened this issue Apr 19, 2024 · 0 comments

Comments

@Firefly7-7
Copy link

I would like to be able to open the itch app directly from other apps to a certain page, specifically game pages. I am aware that opening to dashboard, library etc. is possible, however I cannot find the correct way to open to open the app to a specific game page (not download or run, which I'm aware is possible).

This feature is near-identical to what was being addressed here 5 years ago. The comments on the solution mention that the button to directly open the itch app was planned, and that the solution given would not be necessary. While the feature is not identical to what I want, I looked at the code and figured out how it worked (using the itchio:// path directive thing instead of https://) and tried to replicate it, however this did not work. It replace the itchio prefix with itch, and I tried with both stripping the beginning https:// and keeping it. I cannot find any other place that mentions anything similar.

(I am doing testing primarily from both file explorer and inside the itch app using the url text box)

Why: I am trying to upgrade a script for another application that opens links directly in related apps, and wanted to include itch in it.

I looked at the codebase and experimented a bit and found a couple of possible solutions.

Launching from a url starting with itchio replaces it with itch, but typing a url with itchio in the app adds a http prefix to it. This, and the solution that worked 5 years ago, leads me to believe that the intended behavior of using itchio is to replace itchio with https. My first idea is to re-implement that.

I assume that that functionality existed at some point, but was removed for some technical reason. So, in the code I found explicit pattern matching for specific pages that were supposed to be loaded from the itch prefix. My idea is that if it fits none of them, to change the prefix to https and try to load the page again.

Thank you for your consideration!

os: Windows 11
itch version: 25.6.2 for windows 64

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant