Class: Maglev::GetPageFullpath
- Inherits:
-
Object
- Object
- Maglev::GetPageFullpath
- Includes:
- Injectable
- Defined in:
- app/services/maglev/get_page_fullpath.rb
Overview
Get the full path of a page (locale + path). It relies on the GetBaseUrl service to get the base url.
Instance Method Summary collapse
Instance Method Details
#call ⇒ Object
17 18 19 20 21 22 23 24 |
# File 'app/services/maglev/get_page_fullpath.rb', line 17 def call base_url = get_base_url.call(preview_mode: preview_mode) safe_path = path || fetch_path return unless safe_path build_fullpath(base_url, safe_path) end |