Skip to content

Commit

Permalink
Merge branch 'bad-urls'
Browse files Browse the repository at this point in the history
  • Loading branch information
alastair committed Apr 11, 2022
2 parents fdbb470 + 94eee08 commit c55d502
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion critiquebrainz/frontend/templates/review/entity/work.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ <h2 id="title">

{{ _('%(work)s', work=work_name) }}

{% if work['life-span'] %}
{% if work['life-span'] is defined %}
<small>{{ work['life-span']['begin'][:4] }}</small>
{% endif %}
</h2>
Expand Down
2 changes: 1 addition & 1 deletion critiquebrainz/frontend/views/artist.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def entity(id):
raise BadRequest("Invalid page number!")

if page < 1:
return redirect(url_for('.reviews'))
return redirect(url_for('artist.entity', id=id))
release_groups_offset = (page - 1) * BROWSE_RELEASE_GROUPS_LIMIT
release_groups, release_group_count = mb_release_group.browse_release_groups(
artist_id=artist['mbid'],
Expand Down
2 changes: 1 addition & 1 deletion critiquebrainz/frontend/views/work.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def entity(id):
raise BadRequest("Invalid page number!")

if page < 1:
return redirect(url_for('.reviews'))
return redirect(url_for('work.entity', id=id))

recording_rels = work['recording-rels']
recording_count = len(recording_rels)
Expand Down

0 comments on commit c55d502

Please sign in to comment.