question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

not support protocol less url

See original GitHub issue

publicPath //example.com/path/ generate

<link rel="manifest" href="/example.com/path/manifest.json" />  

publicPath http://example.com/path/ generate

<link rel="manifest" href="http://example.com/path/manifest.json" />  

Issue Analytics

  • State:open
  • Created 6 years ago
  • Reactions:1
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
eatsjobscommented, Mar 7, 2018

Up. Same problem with 3.6.1 version. Somenthing like that could work?

function normalizeURI (uri) {  
  return uri.replace(/(:\/\/)|(\\+|\/{2,})+/g, match => {
    if(match === '://' || match === '//') {
      return match;
    } else {
      return '/';
    }
  })
}
0reactions
arthurbergmzcommented, Mar 13, 2018

@eatsjobs

Hey, can you test it and make a PR, please?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why use protocol-relative URLs at all? - Stack Overflow
Protocol -relative URLs sometimes break JS codes that try to detect location.protocol. They are also not understood by ...
Read more >
No protocol-relative URLs | webhint documentation
If protocol-relative URLs are used for CDN links, their domain is not in the browser's HSTS preload list, and the first request is...
Read more >
The protocol-relative URL - Paul Irish
Update 2014.12.17: Now that SSL is encouraged for everyone and doesn't have performance concerns, this technique is now an anti-pattern.
Read more >
Wikipedia:Protocol-relative URL
Definition. A protocol-relative URL (PRURL) is the method for linking to a website that offers both HTTP and HTTPS, while HTTPS links should...
Read more >
Should You Be Using Protocol-Relative URLs? - Designcise
It's because protocol-relative URLs may resolve the resource to use HTTP or HTTPS depending on the server configuration and/or how the page ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found