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

Is there a way to do full page reloads from a ajaxified request? #18

Open
ULKARAMAKRISHNAN opened this issue Nov 4, 2015 · 4 comments

Comments

@ULKARAMAKRISHNAN
Copy link

For example:

Login required before filter redirects to login page but when a ajaxified link is clicked and the filter halts the execution, the redirect_to is also ajaxified but I want it to load the full page instead of ajaxified div.

Is there any way to do so?

Thanks

@ncri
Copy link
Owner

ncri commented Nov 4, 2015

Just curious, why would you want to do that? As a hack you can add some js on the login page to refresh itself... Not very clean though. I don't use Ajaxify myself anymore, just in some old projects. I rely on Turbolinks these days, as there is a big community so it get's lots of fixes and improvements. In rails 5 it will get some bigger updates, I think it will also become possible to specify a load target for your content. Not much need for Ajaxify then anymore.

@ULKARAMAKRISHNAN
Copy link
Author

Hi Thanks, Just curious to know what ajaxify_add_meta_tags method does?

@ncri
Copy link
Owner

ncri commented Nov 7, 2015

It mainly adds a meta tag with an md5 digest checksum for the current set of assets to allow asset change detection. When ever the assets change, the whole page is reloaded to prevent the loaded ajaxify content to use the old assets.

@ULKARAMAKRISHNAN
Copy link
Author

This method needs to be called manually when ever assets change? or it works automatically? If so can you explain more on this.

Thanks

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

2 participants