Skip to content

Commit

Permalink
🐛 #95: Replace whitespaces to plus-sign to handle url-encoded hrefs
Browse files Browse the repository at this point in the history
  • Loading branch information
Sharp0802 committed Sep 25, 2024
1 parent 5aebcfb commit 335a388
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/sika.core/Components/FileSystemWriter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ public FileSystemWriter(Project project)

public async Task CompileAsync(PageTree tree)
{
var fullname = Path.Combine(_project.Info.SiteDirectory, tree.GetFullPath());
var path = tree.GetFullPath().Replace(' ', '+');

var fullname = Path.Combine(_project.Info.SiteDirectory, path);

if (tree.Content is PageLeafData leaf)
{
Expand Down
2 changes: 1 addition & 1 deletion src/sika/sika.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<Nullable>enable</Nullable>
<PreserveCompilationContext>true</PreserveCompilationContext>

<AssemblyVersion>3.2.0</AssemblyVersion>
<AssemblyVersion>3.2.1</AssemblyVersion>

<PackAsTool>true</PackAsTool>
<ToolCommandName>sika</ToolCommandName>
Expand Down

0 comments on commit 335a388

Please sign in to comment.