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