Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
CETAF
StableIdentifierNegotiation
Commits
80b24733
Commit
80b24733
authored
Jun 20, 2019
by
Fabian Reimeier
Browse files
dynamic routing
parent
9c297587
Changes
1
Hide whitespace changes
Inline
Side-by-side
public/index.php
View file @
80b24733
...
...
@@ -92,7 +92,7 @@ $app->group('/data', function() use ($app) {
## If no barcode is given, redirect to catalog
if
(
!
isset
(
$barcode
))
return
$response
->
withRedirect
(
Config
::
get
(
'urls'
)[
'catalog
_url'
]
,
303
);
return
$response
->
withRedirect
(
$this
->
get
(
'router'
)
->
pathFor
(
'catalog
'
)
,
303
);
## If barcode was not found in DB, return 404
if
(
!
$databaseUtil
->
isInDB
(
$barcode
))
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment