Replacing spaces with underscores for BreezeWiki redirects

pull/91/head v1.1.2
Kevin Payravi 2023-02-08 05:48:59 -06:00
parent f8e482001a
commit 812fddb71f
3 changed files with 3 additions and 3 deletions

View File

@ -28,7 +28,7 @@ chrome.runtime.onMessage.addListener(function (msg, sender, sendResponse) {
function redirectToBreezeWiki(storage, eventInfo, url) {
function processRedirect(host) {
const subdomain = url.hostname.split(".")[0];
const article = url.href.split('fandom.com/wiki/')[1];
const article = url.href.split('fandom.com/wiki/')[1].replaceAll('%20', '_');
if (article) {
chrome.tabs.update(eventInfo.tabId, { url: host + '/' + subdomain + '/wiki/' + article });
} else {

View File

@ -1,6 +1,6 @@
{
"name": "Indie Wiki Buddy",
"version": "1.1.1",
"version": "1.1.2",
"description": "Helping you discover quality independent wikis through alerts, redirects, and search filtering",
"permissions": [
"storage",

View File

@ -1,6 +1,6 @@
{
"name": "Indie Wiki Buddy",
"version": "1.1.1",
"version": "1.1.2",
"description": "Helping you discover quality independent wikis through alerts, redirects, and search filtering",
"permissions": [
"storage",