Skip to content

Commit

Permalink
chg - Fix links
Browse files Browse the repository at this point in the history
---

Type: chg
Breaking: False
Doc Required: False
Backport Required: False
Part: 1/1
  • Loading branch information
AptiviCEO committed Aug 15, 2024
1 parent e216ced commit d61c4e5
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
- name: Publish the website in its release form
run: |
dotnet workload install wasm-tools
dotnet publish --configuration Release
dotnet publish --configuration Release -p:GHPAGES=1
- name: Change base-tag
run: sed -i 's/<base href="\/" \/>/<base href="\/Demos\/" \/>/g' $PUBLISH_FOLDER/index.html
Expand Down
16 changes: 13 additions & 3 deletions Demos/Pages/Index.razor
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
Dictionary API. This is based on Nettify.
</td>
<td>
<button class="btn btn-primary" @onclick="@(e => NavManager.NavigateTo("/define"))">
<button class="btn btn-primary" @onclick="@(e => NavManager.NavigateTo(usesGhPages ? "/Demos" : "" + "/define"))">
<span class="oi oi-media-play" aria-hidden="true" />
</button>
</td>
Expand All @@ -50,7 +50,7 @@
list of all the English-pronounced names. This is based on Textify and our words list.
</td>
<td>
<button class="btn btn-primary" @onclick="@(e => NavManager.NavigateTo("/namefind"))">
<button class="btn btn-primary" @onclick="@(e => NavManager.NavigateTo(usesGhPages ? "/Demos" : "" + "/namefind"))">
<span class="oi oi-media-play" aria-hidden="true" />
</button>
</td>
Expand All @@ -64,10 +64,20 @@
list of all the English-pronounced names. This is based on Textify and our words list.
</td>
<td>
<button class="btn btn-primary" @onclick="@(e => NavManager.NavigateTo("/namegen"))">
<button class="btn btn-primary" @onclick="@(e => NavManager.NavigateTo(usesGhPages ? "/Demos" : "" + "/namegen"))">
<span class="oi oi-media-play" aria-hidden="true" />
</button>
</td>
</tr>
</tbody>
</table>

@code {
bool usesGhPages =
#if GHPAGES
true
#else
false
#endif
;
}

0 comments on commit d61c4e5

Please sign in to comment.