AjuntamentdeBarcelona / decidim.barcelona-legacy

:warning: [DEPRECATED] Decidim Barcelona - Direct and participatory democracy web platform
GNU Affero General Public License v3.0
40 stars 10 forks source link

Fix resource url based on the step passed to the api endpoint #767

Closed beagleknight closed 7 years ago

beagleknight commented 7 years ago

What and why

This fixes the problem with resources url. For example, if I was on proposals page and click a proposal link I was redirected to that proposal on a previous step.

Now it's using the same step_id passed to the API.

GIF

None

codecov-io commented 7 years ago

Current coverage is 89.33% (diff: 100%)

Merging #767 into master will not change coverage

@@             master       #767   diff @@
==========================================
  Files           307        307          
  Lines         10705      10705          
  Methods           0          0          
  Messages          0          0          
  Branches          0          0          
==========================================
  Hits           9563       9563          
  Misses         1142       1142          
  Partials          0          0          

Powered by Codecov. Last update a729ac5...f4e51aa