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

fix(printer): refine "localhost" matching in printer.service.ts #2095

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

jbilinski
Copy link

Bug: unable to print if url contains the word "localhost" in any location
resulting in the "about:blank", no output path
example: http://nonlocalhoster.com would be changed to http://nonhost.docker.internaler.com

proposed:
change localhost matching for local dev environments from a url string match to more specific regex that matches host property.

  • Low Priority
  • Edge Case
  • Service resilience

changed localhost matching for local dev environments from a url string match to more specific regex that matches host property.
This was causing the "about:blank", no output error in (edge) case of printing a pdf from any url with string "localhost"
fix: refine "localhost" matching in printer.service.ts
@jbilinski
Copy link
Author

this was an issue for me, but i think unlikely for many others

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.

1 participant