Skip to content

Commit

Permalink
Fix urljoin
Browse files Browse the repository at this point in the history
  • Loading branch information
HungNgien committed Jan 17, 2025
1 parent f36eb0c commit 561bc66
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/pretix/base/models/event.py
Original file line number Diff line number Diff line change
Expand Up @@ -1151,12 +1151,12 @@ def talk_speaker_url(self):

@property
def talk_dashboard_url(self):
url = urljoin(TALK_HOSTNAME, f"/orga/event/{self.slug}")
url = urljoin(TALK_HOSTNAME, f"orga/event/{self.slug}")
return url

@property
def talk_settings_url(self):
url = urljoin(TALK_HOSTNAME, f"/orga/event/{self.slug}/settings")
url = urljoin(TALK_HOSTNAME, f"orga/event/{self.slug}/settings")
return url

@cached_property
Expand Down
2 changes: 1 addition & 1 deletion src/pretix/eventyay_common/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def _default_context(request: HttpRequest):
if not event:
return ctx

ctx["talk_edit_url"] = urljoin(settings.TALK_HOSTNAME, f"/orga/event/{event.slug}")
ctx["talk_edit_url"] = urljoin(settings.TALK_HOSTNAME, f"orga/event/{event.slug}")
ctx["is_video_enabled"] = is_video_enabled(event)
ctx["is_talk_event_created"] = False
if (
Expand Down

0 comments on commit 561bc66

Please sign in to comment.