-
Notifications
You must be signed in to change notification settings - Fork 114
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
path to fix "build now" problems #91
Comments
sounds good! Want to submit a PR On Wednesday, January 20, 2016, Max Kovgan [email protected] wrote:
Kevin Burke |
The compile process for this project is kind of a nightmare just make the On Wednesday, January 20, 2016, Kevin Burke [email protected] wrote:
Kevin Burke |
@kevinburke I think I can run make, |
NOTE: this is 1 of 2 issues causing these bugs #86 and #73
A regex used in several
isJob*()
methods does:return path.match(/^\/job\/.*?\//) !== null;
, or similar.This regex assumes the value of
window.location.pathname
on a job page would always start with/job
. This is untrue for various setups, esp. when jenkins is behind a reverse proxy of nginx/apachehttpd/etc., so the value ofwindow.location.pathname
can be/ci/job
, or even nested:/apps/ci/job
. failing to detect we're on a job page results in missing "Build Now" button.I'm suggesting this regex:
return path.match(/^\/(.*\/)?job\/.*?\//)
, it allows the above paths, but probably could use some finer-tuning.The text was updated successfully, but these errors were encountered: