Speaking URLs (route enhancer)
The extension ships a route enhancer for the detail view in
EXT:. It creates URLs like
https:// instead of URLs with
query parameters.
TYPO3 13.4 cannot load route enhancers from site sets. Import the file in your site configuration:
imports:
- { resource: 'EXT:jobboard/Configuration/Routes/Default.yaml' }
routeEnhancers:
JobboardPlugin:
limitToPages: [42]
The enhancer has the key
Jobboard. It does not define
limit, because lists of imported YAML files are merged and
cannot be replaced. Add
limit with the UID of your job board
page below the same key, as shown above.
How it works
- Route
/maps to the action{job_ title} detailwith the argumentjob. The default action islist. - The aspect
PersistedresolvesAlias Mapper job_with the field "URL segment" (title path_) of the job.segment - The URL segment is created from the job title when a job is saved, also for imported jobs. It is unique in the whole job table, because the aspect resolves it table-wide. Changing the title does not change the URL segment. Editors can regenerate it in the job record.
- For jobs without URL segment, for example after a migration, run the
upgrade wizard
jweiland, see Upgrade wizards.Jobboard Job Path Segment Update
URL of the PDF version
The PDF version of a job uses the page type 1575903427. Without
further configuration, its URL ends with ?type=1575903427. To get a
speaking suffix, map the page type with a
Page decorator:
If your site already has a
Page decorator, add the mapping to
it instead of creating a second one.