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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Packaged url separator #1928

Closed
dxx opened this issue Aug 24, 2018 · 3 comments
Closed

Packaged url separator #1928

dxx opened this issue Aug 24, 2018 · 3 comments

Comments

@dxx
Copy link

dxx commented Aug 24, 2018

馃檵 feature request

When i put a html link in index.html, i want a uniform separator after packing.

馃 Expected Behavior

index.html

Before packing

<a href="./other/other.html">other</a>

After packing

<a href="/other/other.html">other</a>

馃槸 Current Behavior

Before packing

<a href="./other/other.html">other</a>

After packing

<a href="/other\other.html">other</a>

馃捇 Examples

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Parcel Start</title>
</head>
<body>
  <a href="./other/other.html">other</a>
  <script src="./index.js"></script>
</body>
</html>

Expected

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Parcel Start</title>
<body>
  <a href="/other/other.html">other</a>
  <script src="/parcel-start.36025754.js"></script>
</body>
</html>

I am useing windows operating system
Parcel's version is 1.9.7

@DeMoorJasper
Copy link
Member

I flagged this as a bug as a backwards slash isn't a valid url as far as I know. Browsers and servers are just good at handling about anything

@peanutbother
Copy link
Contributor

my issue #1990 is a duplicate of this.
but it provides some more detail about it.
once #1965 is out, i'll look into this aswell.

@DeMoorJasper
Copy link
Member

Closing in favor of #1990

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

No branches or pull requests

3 participants