longlostnick / bootstrap-growl

Pretty simple jQuery plugin that turns standard Bootstrap alerts into "Growl-like" notifications.
http://ifightcrime.github.io/bootstrap-growl
MIT License
806 stars 207 forks source link

Dismiss button does not keep URL fragment (hash) #40

Open colegleason opened 10 years ago

colegleason commented 10 years ago

My AngularJS app uses the fragment identifier (portion of URL after #) to determine the page. When a user dismisses an alert (allow_dismiss == true), it kicks them back to just # because of the anchor href.

https://github.com/ifightcrime/bootstrap-growl/blob/master/jquery.bootstrap-growl.js#L16

Could we allow the dismiss url to be set via a function or something so I can set it to the current window location including the fragment?

ronny332 commented 9 years ago

+1