Skip to content

Commit

Permalink
Fix the wrong URL attribute of an Event (#389)
Browse files Browse the repository at this point in the history
(cherry picked from commit f8ea270)
  • Loading branch information
kivanov82 authored and cbellone committed Feb 13, 2018
1 parent 9557cce commit ca0c298
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/main/java/alfio/controller/api/support/EventListItem.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@
*/
package alfio.controller.api.support;

import alfio.model.Event;
import alfio.model.EventDescription;
import alfio.util.EventUtil;

import java.time.Clock;
import java.util.List;
import java.util.stream.Collectors;

import alfio.model.Event;
import alfio.model.EventDescription;
import alfio.util.EventUtil;

public class EventListItem {

protected final Event event;
Expand All @@ -41,7 +41,7 @@ public String getImageUrl() {
}

public String getUrl() {
return event.isInternal() ? requestContextPath + "/events/" + event.getShortName() : event.getExternalUrl();
return event.isInternal() ? requestContextPath + "/event/" + event.getShortName() : event.getExternalUrl();
}

public boolean isExternal() {
Expand Down

0 comments on commit ca0c298

Please sign in to comment.