Skip to content

Updated to work with Turbolinks 5#7

Open
aalbayaty wants to merge 1 commit into
TerribleDev:masterfrom
aalbayaty:master
Open

Updated to work with Turbolinks 5#7
aalbayaty wants to merge 1 commit into
TerribleDev:masterfrom
aalbayaty:master

Conversation

@aalbayaty

Copy link
Copy Markdown

Changed the headers to support Turbolink. To be more specific on all redirects adding "Turbolinks-Location".

@ghost

ghost commented Aug 13, 2020

Copy link
Copy Markdown

Any reason this can't be merged?

@dmorganb

dmorganb commented Aug 16, 2020

Copy link
Copy Markdown

I tried this and it didn't work as I expected when I had an action that returned a RedirectResult. The reason was that the turbolinks location header needs to be added at the last request(i.e. the GET request, after the REDIRECT) I am working on getting this to work

@dmorganb

dmorganb commented Aug 20, 2020

Copy link
Copy Markdown

In the end, it resulted in something different, so I created my own implementation: https://github.com/dmorganb/TurboLinksCore/blob/master/src/TurbolinksMiddleware.cs

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

Successfully merging this pull request may close these issues.

2 participants