hugo/hugolib
tummychow 2e954d8551 Fix permalinks to subdomains
If you don't have access to the root domain of your site (eg a GitHub project
page) and you try to generate custom permalinks, they must begin with a slash.
Go's URL resolution library sees the leading slash and thinks "this URL starts
at the root", just like a filesystem - so it discards your subdomain and maps
all custom permalinks from the root of your site. Fine if you control the root
domain, not so useful if you don't.

Removing the check for a leading slash fixes this problem. You can now specify
custom permalinks that do not start with a slash, and they will map safely
regardless of what subdomain you upload the generated site under.

Tests have been updated for this commit so that they continue to function.
2014-04-26 23:01:28 -06:00
..
benchmark_test.go Fixing issues go vet reports. 2014-03-01 09:56:17 -05:00
menu.go Creating site menu configuration and have the docs site use it 2014-04-24 16:11:08 -06:00
node.go new menus system including active link & nesting 2014-04-23 02:59:19 -04:00
page.go Creating site menu configuration and have the docs site use it 2014-04-24 16:11:08 -06:00
page_permalink_test.go Fixing all tests to pass with new Viper Config 2014-04-07 11:44:51 -04:00
page_taxonomy_test.go Renamed Indexes to Taxonomies. Old template and config parameters still work. 2014-04-09 17:15:04 -04:00
page_test.go Fixing issues go vet reports. 2014-03-01 09:56:17 -05:00
page_time_integration_test.go Adding support for date field in front matter as date (as TOML provides) 2013-10-24 15:18:57 -07:00
pageSort.go Add sort pages by Title and by LinkTitle 2014-03-13 11:39:13 +01:00
path_seperators_test.go Refactor layout selection code 2013-10-08 18:44:15 +02:00
path_seperators_windows_test.go Add Disqus support out of the box. Move template/bundle into hugolib. 2014-04-23 02:53:12 -04:00
permalinks.go Fix permalinks to subdomains 2014-04-26 23:01:28 -06:00
permalinks_test.go Fix permalinks to subdomains 2014-04-26 23:01:28 -06:00
planner.go Refactor layout selection code 2013-10-08 18:44:15 +02:00
redis.cn.md Adding benchmark for parsing pages using unicode. 2013-08-09 17:36:32 -07:00
rss_test.go Fixing all tests to pass with new Viper Config 2014-04-07 11:44:51 -04:00
shortcode.go Add Disqus support out of the box. Move template/bundle into hugolib. 2014-04-23 02:53:12 -04:00
shortcode_test.go Fixing some bugs introduced in prior few commits. Tests now pass. 2014-04-24 10:18:47 -06:00
site.go Creating site menu configuration and have the docs site use it 2014-04-24 16:11:08 -06:00
site_show_plan_test.go Fix test to not fail when order is different, but slice contents are the same. 2014-04-08 21:57:25 -04:00
site_test.go Renamed Indexes to Taxonomies. Old template and config parameters still work. 2014-04-09 17:15:04 -04:00
site_url_test.go Renamed Indexes to Taxonomies. Old template and config parameters still work. 2014-04-09 17:15:04 -04:00
siteinfo_test.go Fixing all tests to pass with new Viper Config 2014-04-07 11:44:51 -04:00
summary.go Adding support for logging & verbose logging. Consolidation of error handling. Integration of jWalterWeatherman library. Fixed #137 2014-03-31 13:23:34 -04:00
taxonomy.go Renamed Indexes to Taxonomies. Old template and config parameters still work. 2014-04-09 17:15:04 -04:00
taxonomy_test.go Renamed Indexes to Taxonomies. Old template and config parameters still work. 2014-04-09 17:15:04 -04:00
template.go Add Disqus support out of the box. Move template/bundle into hugolib. 2014-04-23 02:53:12 -04:00
template_embedded.go Add Disqus support out of the box. Move template/bundle into hugolib. 2014-04-23 02:53:12 -04:00
template_test.go Add Disqus support out of the box. Move template/bundle into hugolib. 2014-04-23 02:53:12 -04:00