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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix author bug #2010

Merged
merged 3 commits into from Nov 1, 2016
Merged

Fix author bug #2010

merged 3 commits into from Nov 1, 2016

Conversation

gemfarmer
Copy link
Contributor

I'm making the PR to master because the bug is only on master

Fixes issue(s) #2009

CircleCI

馃槑 PREVIEW

Changes proposed in this pull request:
It is hard to be 100% certain that this change will fix the bug seen in #2009, but I'm confident that it will. I think that the issue that we were seeing here is that URLs in production are constructed by combining a site url with a site baseurl. It is assumed that baseurl is an empty string, as we set it in _config.yml, but Federalist may be updating it.

In this set of changes I'm

  • screening for the renegade baseurl string site/18F/18f.gsa.gov
  • setting absolute URL in production if that text snippet is detected, otherwise restoring basurl to an empty string ""
  • On federalist, this should still work, because it will still be using the baseurl as it is currently.

/cc @coreycaitlin

@gboone gboone merged commit 3cf928a into master Nov 1, 2016
@gboone gboone deleted the debug-author branch November 1, 2016 22:44
@coreycaitlin coreycaitlin mentioned this pull request Nov 2, 2016
3 tasks
@gemfarmer
Copy link
Contributor Author

@coreycaitlin @jamiealbrecht Did this fix the bug for either of you?

@coreycaitlin coreycaitlin mentioned this pull request Dec 20, 2016
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.

None yet

3 participants