Showing the changes to lib (1 of 2 files). Show all
Unified · Split
| @@ -50,6 +50,10 @@ module Docs · 49 unmodified lines | |||
| 50 | subpath.blank? || subpath == '/' || subpath == root_path | 50 | subpath.blank? || subpath == '/' || subpath == root_path |
| 51 | end | 51 | end |
| 52 | 52 | ||
| 53 | def initial_page? | ||
| 54 | root_page? || context[:initial_paths].include?(subpath) | ||
| 55 | end | ||
| 56 | |||
| 53 | SCHEME_RGX = /\A[^:\/?#]+:/ | 57 | SCHEME_RGX = /\A[^:\/?#]+:/ |
| 54 | 58 | ||
| 55 | def fragment_url_string?(str) | 59 | def fragment_url_string?(str) |