Skip to content

Commit

Permalink
added site.url to fix bug where send messages on contact page redirec…
Browse files Browse the repository at this point in the history
…tet to invalid url
  • Loading branch information
bkroggel committed Dec 25, 2015
1 parent c6967a8 commit ffcb4ef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ admin_user: Bastian Kroggel
email: mail@bastiankroggel.com
description: There is currently no description, but I am working on it.
baseurl: "" # the subpath of your site, e.g. /blog/
url: "" # the base hostname & protocol for your site
url: "http://www.bastiankroggel.com" # the base hostname & protocol for your site
favicon: /assets/img/site/favicon.png
theme-color: "#363636" #Theme color for Google Chrome for Android
twitter_username: derKroggel
Expand Down
2 changes: 1 addition & 1 deletion _includes/contact_form.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<input type="text" name="_honey" value="" style="display:none">
<input name="name" placeholder="Your name*"></input>
<input type="hidden" name="_valid[name]" value="required">
<input type="hidden" name="_after" value="{{ "http://localhost:4000/contact/success/" | prepend: site.baseurl }}">
<input type="hidden" name="_after" value="{{ "/contact/success/" | prepend: site.url }}">
</div>
<br>
<div>
Expand Down

0 comments on commit ffcb4ef

Please sign in to comment.