Skip to content
This repository has been archived by the owner on Jul 19, 2021. It is now read-only.

Prevent the following of redirects for custom domains #3

Merged
merged 2 commits into from
Aug 23, 2016

Conversation

richgilbank
Copy link

When merchants have redirection on for custom domains, browserstack was loading the page then following the redirect to the new URL:
image

This PR uses a query string param in Shopify (?_fd=0) to prevent that forwarding. It also moves away from the generic query string proxying to using middleware, so the site can continue to be navigated and still keep that query string.

@cshold @t-kelly
cc @m-ux

@cshold
Copy link
Contributor

cshold commented Aug 23, 2016

Great idea. 👍

@macdonaldr93
Copy link
Contributor

Getting a redirect loop on this.

The localhost page isn’t working

localhost redirected you too many times.
Try clearing your cookies.
ERR_TOO_MANY_REDIRECTS

Reproduce: slate watch on a new theme.

I'm debugging further

@macdonaldr93
Copy link
Contributor

Love it though haha ❤️

@macdonaldr93
Copy link
Contributor

Redirect issue fixed.

@Shopify/themes-fed lookin' for some love on this PR

@macdonaldr93
Copy link
Contributor

There seems to be one issue where custom domain + password enabled still kicks you out of the proxy and browsersync

@macdonaldr93 macdonaldr93 merged commit c8d4a82 into master Aug 23, 2016
@macdonaldr93 macdonaldr93 deleted the no_domain_redirects branch August 23, 2016 20:26
@lock
Copy link

lock bot commented Oct 26, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Oct 26, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants