Skip to content

Commit

Permalink
bug: improve handling of broken urls: build docker image for branch
Browse files Browse the repository at this point in the history
  • Loading branch information
nwittstruck committed Jan 24, 2024
1 parent c773cc7 commit 1bd9b3f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ on:
push:
branches:
- main
- 172-fix-error-link-line-break
release:
types: [published]

Expand Down
1 change: 1 addition & 0 deletions lib/qrstorage_web/controllers/qr_code_controller.ex
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ defmodule QrstorageWeb.QrCodeController do
qr_code = QrCodes.get_qr_code!(id)

if qr_code.content_type == :link do
# we don't want to redirect to external links:
redirect(conn, to: "/")
else
render(conn, "show.html", qr_code: qr_code)
Expand Down

0 comments on commit 1bd9b3f

Please sign in to comment.