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

Extension only starts at root url #30

Open
plkn opened this issue Aug 21, 2023 · 1 comment
Open

Extension only starts at root url #30

plkn opened this issue Aug 21, 2023 · 1 comment

Comments

@plkn
Copy link

plkn commented Aug 21, 2023

When I open workflowy not from the root domain, but with some particular URL (workflowy.com/#/34a8b21b6145), the extension doesn't start. At lease hotkeys doesn't work. I have to take focus to the address bar and manually visit root URL, then it starts.

@NekitCorp
Copy link
Owner

NekitCorp commented Aug 23, 2023

The problem occurs when using experimental feature Open links in desktop app:

When opening links in the browser, also open them in the desktop app. THIS DOES NOT APPLY TO MOBILE APPS.

due to which a script is added to the root html response:

<script>
    if (window.location.href.includes('/#/')) {
        window.location.href = window.location.href.replace("https://", "workflowy://");
     }
</script>

Possible solution: Chrome extension Content Script not loaded until page is refreshed

It seems that the script for changing the url works out before the registration of the extension scripts and therefore the extension does not fall under the pattern matches. We cannot get around the problem with registering the pattern like workflowy://*.workflowy.com/*, because this scheme is not supported.

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

2 participants