Skip to content

Commit

Permalink
0.1.7 (#7)
Browse files Browse the repository at this point in the history
* Fixed bug whereby redirect fuzzy suggest modal would bring up the redirected file itself.
  • Loading branch information
jglev authored Jul 31, 2022
1 parent 479c6aa commit f01fe1e
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
6 changes: 5 additions & 1 deletion main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,14 +112,18 @@ const getRedirectFiles = (
path: `${redirect}`,
originTFile: file,
embedPath: embedPath,
isAlias: alias !== file.name,
isAlias: alias !== file.basename,
extension: redirect.split(".").pop(),
redirectTFile: redirectTFile,
};
});
})
.flat()
.filter((a) => {
if (a.originTFile === a.redirectTFile) {
return false;
}

if (a === undefined) {
return false;
}
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "obsidian-redirect",
"name": "Redirect",
"version": "0.1.6",
"version": "0.1.7",
"minAppVersion": "0.14.15",
"description": "An Obsidian (https://obsidian.md) plugin for redirecting links based on YAML frontmatter.",
"author": "Jacob Levernier",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "obsidian-redirect",
"version": "0.1.6",
"version": "0.1.7",
"description": "An Obsidian (https://obsidian.md) plugin for redirecting links based on YAML frontmatter.",
"main": "main.js",
"scripts": {
Expand Down
3 changes: 2 additions & 1 deletion versions.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@
"0.1.3": "0.14.15",
"0.1.4": "0.14.15",
"0.1.5": "0.14.15",
"0.1.6": "0.14.15"
"0.1.6": "0.14.15",
"0.1.7": "0.14.15"
}

0 comments on commit f01fe1e

Please sign in to comment.