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

removeState & param.fragment questions #36

Open
nlambert opened this issue Feb 8, 2012 · 0 comments
Open

removeState & param.fragment questions #36

nlambert opened this issue Feb 8, 2012 · 0 comments

Comments

@nlambert
Copy link

nlambert commented Feb 8, 2012

Hello Mr Alman,

I am currently merging two projects. One that uses bbq and one that doesn't. I have a feeling I will have to convert the latter to bbq.

I have a question concerning removeState & param.fragment

My observations :

removeState seems to leave the leading hash when there's only one state.

  1. (starting url) - example.com
  2. (param.fragment) - example.com/#content=about
  3. (removeState) - example.com/#

param.fragment seems to convert "already there" hashes to the a=b&c=d format

  1. (starting url) - example.com/#content
  2. (param.fragment) - example.com/#content=&modal=about
  3. (removeState) - example.com/#content=

My question :

I can see why this is happening, but are there options to do otherwise? i.e. Remove leading hash if there are no more "states" & not convert existing hash?

Cheers

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

No branches or pull requests

1 participant