decidim-ice / decidim-module-decidim_awesome

Additional components and Opt-In usability and UX tweaks for Decidim.
GNU Affero General Public License v3.0
25 stars 26 forks source link

Bug Menu Tweaks #124

Closed Ouardaoubahri closed 3 years ago

Ouardaoubahri commented 3 years ago

Describe the bug

As an admin:

  1. I created a participatory process and added it to the menu with Decidim Awesome/Tweaks de menu
  2. I created an assembly and added it to the menu with Decidim Awesome/Tweaks de menu

image

The bug appears when I try to navigate :

⚠️ In both cases, the page is accessible from the other tabs.

A wrong url is generated ("processes" or "assemblies" is added to correct url) :

image

Should be

image

To Reproduce

Steps to reproduce the behavior: Case 1:

  1. Go to https://participez-tours.dcd-commercial-sbox.osp.dev/processes/BudgetParticipatif
  2. Click on 'Rencontres Citoyennes'
  3. See error

Case 2:

  1. Go to https://decidim-app-test.opensourcepolitics.net/assemblies/TestAssemblie
  2. Click on 'Test Concertation'
  3. See error

Expected behavior

I should be able to navigate between all the navigation items.

Screenshots

image

Navigate from "Budget Participatif " to "Rencontres Citoyennes"

image

decidim test -app : Navigate from "Test Assemblie" to "Test Concertation"

microstudi commented 3 years ago

Hi @OuardaOUBAHRI please take a look at your "path" definition in you menu, you are using relative URL's, like this:

assemblies/RencontresCitoyennes

that's why you get this strange behaviour. Try to use this path instead (note the / at the beggining):

/assemblies/RencontresCitoyennes

Ouardaoubahri commented 3 years ago

Hello @microstudi, indeed, that was the problem. thank you !