Skip to content

Pagination changes hash #69

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

Closed
mikalai-sauchanka opened this issue Dec 23, 2014 · 5 comments
Closed

Pagination changes hash #69

mikalai-sauchanka opened this issue Dec 23, 2014 · 5 comments
Assignees

Comments

@mikalai-sauchanka
Copy link

Currently clicking on pagination's pages changes url's hash which is not always desirable (i.e. in SPAs). I guess it's reasonable to add an option to prevent such behaviour.

@rstaib rstaib self-assigned this Dec 30, 2014
@glennschmidt
Copy link

Can I add a +1 for this feature? The current behaviour makes Bootgrid unsuitable for use with JS applications that use hash-based URL routing.

@vkbansal
Copy link

vkbansal commented Mar 4, 2015

I too am looking for this.

It is difficult to manually override it as e.stopPropagation() is used on Line 488 in dist/jquery.bootgrid.js

@qzminski
Copy link

I would like to request this feature, too. There is also a nasty bug if you use <base> tag on your page - when clicking the pagination link, it always performs a redirect.

<head>
<base href="http://www.jquery-bootgrid.com/">
</haed>

@rstaib rstaib added this to the 2.0.0 milestone May 29, 2015
@tompazourek
Copy link

+1

Also it changes the hash even when clicking disabled pagination buttons.

It would be nice to have this earlier than 2.0.0 or at least to find some quick fix to override the behavior. I was not successful in that so far.

@SaulBurgos
Copy link

I have added some changes in the jquery.bootgrid.js 1.3 to make this work without the hash:

https://gist.github.com/SaulBurgos/edf9dd2de2d4e444c6e5

I here is an example working: http://expirebox.com/download/680b91e1fda466b1558213539ccee33f.html

line edited are with comments : "//modify by saul"

I needed use this in angularjs.

@rstaib rstaib removed this from the 2.0.0 milestone Sep 11, 2015
rstaib added a commit that referenced this issue Sep 11, 2015
@rstaib rstaib closed this as completed Sep 11, 2015
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

7 participants