Project

General

Profile

Actions

Bug #91523

closed

Route Enhancer breaks after two actions

Added by Benjamin Bomberg over 4 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Site Handling, Site Sets & Routing
Target version:
-
Start date:
2020-05-29
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
9
PHP Version:
7.3
Tags:
Routeenhancers
Complexity:
Is Regression:
Sprint Focus:

Description

I got the following Problem,

You can see my Yaml-Configuration for my own extension.
The first actions are working and so I got good looking speaking urls
Show-Action: https:example.de/our-jobs/job/kundenberater-in-e-commerce/

Application-Action: https:example.de/our-jobs/profil/kundenberater-in-e-commerce

after these actions the routing breaks and I get for questionaire for example:
https:example.de/our-jobs/?tx_jobboerse_displayjobs%5Baction%5D=questionnaire&tx_jobboerse_displayjobs%5Bcontroller%5D=jobs&tx_jobboerse_displayjobs%5Bjobs%5D=98&cHash=0fac7e52327d8ef84d8a650ceb885e73

So I really dont know how to fix this issue and maybe someone here can help me out!

Thanks :)

routeEnhancers:
  Jobboerse:
    type: Extbase
    extension: Jobboerse
    plugin: displayjobs
    defaultController: 'Jobs::list'
    routes:
      - { _controller: 'Jobs::show', routePath: '/job/{jobs_title}', _arguments: {'jobs_title': 'jobs'} }
      - { _controller: 'Jobs::application', routePath: '/profil/{jobs_title}', _arguments: {'jobs_title': 'jobs'} }
      - { _controller: 'Jobs::cv', routePath: '/cv/{jobs_title}', _arguments: {'jobs_title': 'jobs'} }
      - { _controller: 'Jobs::questionnaire', routePath: '/fragebogen/{jobs_title}', _arguments: {'jobs_title': 'jobs'} }
    aspects:
      jobs_title:
        type: PersistedAliasMapper
        tableName: tx_jobboerse_domain_model_jobs
        routeFieldName: path_segment
Actions #1

Updated by Benjamin Bomberg over 4 years ago

  • Category deleted (Recycler)
Actions #2

Updated by Benjamin Bomberg over 4 years ago

  • Category set to Site Handling, Site Sets & Routing
  • Tags set to Routeenhancers
Actions #3

Updated by Oliver Hader over 4 years ago

Thanks for your report, I've got some questions:

  • Are the input URL parameters the same for all examples - especially, is jobs the same for all URLs to be generated (uid=98)?
  • In case the uid for jobs is different, is any of those records where it's not working translated, hidden, user-group restricted?
  • &tx_jobboerse_displayjobs%5Bcontroller%5D=jobs is lowercase, can you try with uppercase controller name - like in &tx_jobboerse_displayjobs%5Bcontroller%5D=Jobs?
Actions #4

Updated by Oliver Hader over 4 years ago

  • Status changed from New to Needs Feedback
Actions #5

Updated by Benjamin Bomberg over 4 years ago

Oliver Hader wrote:

Thanks for your report, I've got some questions:

  • Are the input URL parameters the same for all examples - especially, is jobs the same for all URLs to be generated (uid=98)?
  • In case the uid for jobs is different, is any of those records where it's not working translated, hidden, user-group restricted?
  • &tx_jobboerse_displayjobs%5Bcontroller%5D=jobs is lowercase, can you try with uppercase controller name - like in &tx_jobboerse_displayjobs%5Bcontroller%5D=Jobs?

Thank you very much for your answer.
It´s a little bit embarrasing... the uppercase of the controllername solved my issue...
I dont think I woul have thought of it now.

Thank you so much!

Actions #6

Updated by Benjamin Bomberg over 4 years ago

  • % Done changed from 0 to 100
Actions #7

Updated by Riccardo De Contardi over 4 years ago

  • Status changed from Needs Feedback to Closed

@Benjamin Fischer Bomberg as far as I have understood, this issue can be closed as resolved.

If you think that this is the wrong decision or I have misunderstood, please ping me and I'll reopen it.

Thank you for your feedback.

Actions

Also available in: Atom PDF