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

Nginx redirect to Conifer page issue: invalid variable name "$", i.e., $br:<preconfigured browser>:<version>. #818

Open
oh-kii opened this issue Mar 10, 2021 · 0 comments

Comments

@oh-kii
Copy link

oh-kii commented Mar 10, 2021

I am trying to establish vanity redirects to land on Conifer pages via nginx, but it seems that having the $ in the destination url causes an invalid variable name "$" in nginx. This is due to variable interpolation. I thought to work around this by replacing the $ with the encoded %24, but it does not seem that Confier currently supports this.

There is a workaround for this which is what I would like to implement as a last resort: nginx escaping dollar.

After some reading of the user guide, and trial and error, I thought to then try to navigate to a confier page without the $br:<preconfigured browser>:<version> in the url; however, it appears that in order to render Flash archived pages, the $br:chrome:76 param is needed in order to determine Flash support for the remote browser.

# nginx entry
location = /aitken {
  return 301  <substitute 1,2,3 examples below>;
  break;
}

# 1. "As is" - nginx error, invalid variable name "$"
https://conifer.rhizome.org/nyarc/moma-doug-aitken/20201214151519$br:chrome:76/https://www.moma.org/interactives/exhibitions/2007/aitken/

# 2. Replace $ with %24 - navigates to Conifer, but captuerd page fails to load
https://conifer.rhizome.org/nyarc/moma-doug-aitken/20201214151519%24:chrome:76/https://www.moma.org/interactives/exhibitions/2007/aitken/

# 3. Without $br:browser:version - navigates to Conifer, but Flash does not render
https://conifer.rhizome.org/nyarc/moma-doug-aitken/20201214151519/https://www.moma.org/interactives/exhibitions/2007/aitken/

Please advice is there is another approach!

Otherwise, may I request an enhancement for the processing of Conifer urls that encode $ as%24?

Thank you!

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

1 participant