Skip to content

Handle circle artifact server not redirecting to index.html for directories #7

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

Merged
merged 1 commit into from
Dec 5, 2016

Conversation

jnothman
Copy link
Member

@jnothman jnothman commented Dec 4, 2016

After the previous change, /circle?1234 will get "Artifact not found" due to not showing index.html

@@ -7,6 +7,14 @@
if (matches) {
var ci_id = matches[1];
var path = matches[2] || '';
if (query.match(/\/$|[^.]{10}$|^[^.]*$/)) {
// path ends with slash or has no . in last 10 chars => append index.html
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Has no "." in the last 10 chars? What's that for?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps I should have made it explicit: to exclude .html, .png, .jpg, .examples, .py, .ipynb, etc.

Copy link
Member

@amueller amueller Dec 5, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ahhh sorry, I'm slow. Maybe add a comment in case I look at it again in a couple of month? ;)

@amueller
Copy link
Member

amueller commented Dec 5, 2016

LGTM

@jnothman jnothman merged commit 6d48ac1 into master Dec 5, 2016
@adrinjalali adrinjalali deleted the circle-shortener branch September 28, 2021 17:59
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