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

URI-encode-on-open-html-file #398

Closed
wants to merge 1 commit into from
Closed

URI-encode-on-open-html-file #398

wants to merge 1 commit into from

Conversation

travis-sauer-oltech
Copy link

I'm able to open .html files with # in name when opening with responsively. I've tested a few other reserved characters and it seems to be working as well.

// code to encode
// file URI
p1 = encodeURIComponent(filePath);
const url = `file://${filePath + p1}`;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@aUsefulMethod Isn't filePath + p1 going to repeat the path twice?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe not work ... encodeURIComponent encode all of string :D

@manojVivek
Copy link
Collaborator

@aUsefulMethod Can you please attach a screenshot of how the address bar looks after the encoding?

@travis-sauer-oltech
Copy link
Author

travis-sauer-oltech commented Aug 25, 2020 via email

@jjavierdguezas
Copy link
Contributor

Hi @aUsefulMethod we are going with #415, we think that is a better approach. Thanks anyway and we are looking forward to more collaboration in the future! 🙌

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

Successfully merging this pull request may close these issues.

When HTML file has an # in the name, it does not open with responsively
4 participants