Skip to content

Commit

Permalink
add button on PacientiCovid19 test request detail page go to Zadanky …
Browse files Browse the repository at this point in the history
…testu Covid-19 (fix url with key)

Signed-off-by: Lukas Drahnik <[email protected]>
  • Loading branch information
ldrahnik committed Sep 12, 2021
1 parent 499ac6b commit 84300f3
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions popup/popup.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,12 @@ function getEregRegistrUrl() {
return "https://" + getEregRegistrDomain();
}

function getRegistrZadankaPage() {
return "/Registr/CUD/Zadanka";
}

function getRegistrZadankaUrl() {
return getRegistrUrl() + "/Registr/CUD/Zadanka";
return getRegistrUrl() + getRegistrZadankaPage();
}

function getRegistrZadankaOdberneMistoPage() {
Expand Down Expand Up @@ -52,7 +56,7 @@ if (ZadankaToPacientiCovid19Button) {
url.origin == getRegistrUrl() &&
(
url.pathname == getRegistrZadankaOdberneMistoPage() ||
url.pathname == getEregRegistrCUDzadankyZadankaPage()
url.pathname == getRegistrZadankaPage()
)
) {
var pacientiCovid19ZadankaUrl = getEregRegistrCUDzadankyZadankaUrl();
Expand All @@ -75,7 +79,7 @@ if (ZadankaToPacientiCovid19Button) {
url.origin == getRegistrUrl() &&
(
url.pathname == getRegistrZadankaOdberneMistoPage() ||
url.pathname == getEregRegistrCUDzadankyZadankaPage()
url.pathname == getRegistrZadankaPage()
)
) {
var pacientiCovid19ZadankaUrl = getEregRegistrCUDzadankyZadankaUrl();
Expand Down

0 comments on commit 84300f3

Please sign in to comment.