websanova / js-url

url() - A simple, lightweight url parser for JavaScript
http://www.websanova.com
MIT License
1.93k stars 204 forks source link

if # is before ?, it won't parse ? prameter #52

Closed dotku closed 7 years ago

dotku commented 8 years ago

eg. url#/page1.html?param1=value1

url('?param1'); //undefined url('#page1.html?param1') // value1

websanova commented 8 years ago

it's not designed for hashbang url's. You need to parse it on your own.

url('?param1', url('hash'));

On Wed, Oct 26, 2016 at 6:36 AM, Weijing Jay Lin notifications@github.com wrote:

eg. url#/page1.html?param1=value1

url('?param1'); //undefined url('#page1.html?param1') // value1

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/websanova/js-url/issues/52, or mute the thread https://github.com/notifications/unsubscribe-auth/ABkcywxEL7YeiWp2ZGqXGtd7QgYi1YZFks5q3pKUgaJpZM4Kgmj7 .