[resolved: used %u instead] Proxy settings - %p not replaced?

edited July 10, 2024
188BET靠谱吗First of all, thanks for making Zotero and the proxy redirection.it is an awesome feature!
But today i came across a problem.Most of our university's subscriptions can be accessed via the oclc proxy.This works fine.
But O'Reilly uses its own institutional login flow, so i wanted to add a "proxy" config for their page.

With the current config (that i'll post below), i came as far as manually reloading via proxy successfully brings up the university auth dialog, but after logging in, it redirects me to the wrong page.

current proxy config:

login URL scheme: https://learning.oreilly.com/accounts/login-academic-check/?idp-slug=technische-hochschule-nuernberg-georg-simon&next=/%p
proxied url scheme: https://learning.oreilly.com/%p
Hostnames:
  • www.oreilly.com

Example:


  1. I visithttps://www.oreilly.com/library/view/the-online-advertising/9780470051054/

  2. I manually reload via OReilly proxy

  3. 188BET靠谱吗Zotero redirects me to the auth screen of my university

  4. After authenticating, the page i get redirected to ishttps://learning.oreilly.com/%p(yes, literal %p)

  5. the page i would have expected ishttps://learning.oreilly.com/library/view/the-online-advertising/9780470051054/

Debug ID of example

D1769369900

  • Does%ponly work in proxied URL scheme (the help text says "You may use the following variables in your proxy schemes[...]")?

  • Is the forward slash an escape character?

  • Can this even work what i'm trying to do here?

  • The login URL scheme is designed to be used with %u, since you wouldn't usually redirect back to the same hostname from the proxy login page.

    Does using https://learning.oreilly.com/accounts/login-academic-check/?idp-slug=technische-hochschule-nuernberg-georg-simon&next=%unot work as a scheme?
  • Okay, it does indeed work.Had expected the login page of O'Reilly to throw a 400 Bad Request if an absolute URL is provided, but this is luckily not the case.

    Thank you for helping out @adomasven!
Sign Inor Registerto comment.