2024-07-14 22:36:08 +03:00
|
|
|
export const bookUrl = (country) => {
|
|
|
|
const urlPattern = /^https:\/\/www\.kobo\.com\/../;
|
|
|
|
const newPath = `https://www.kobo.com/${country}`;
|
2024-07-15 20:52:41 +03:00
|
|
|
const url = window.location.href.replace(urlPattern, newPath);
|
2024-07-14 22:36:08 +03:00
|
|
|
|
2024-07-15 20:52:41 +03:00
|
|
|
l("url for country", country, url);
|
|
|
|
|
|
|
|
return url;
|
2024-07-14 22:36:08 +03:00
|
|
|
};
|