fix: handle navigation inside the app

This commit is contained in:
tdurieux
2026-08-06 15:02:40 -07:00
parent f0fdd9250b
commit 44842d4e77
6 changed files with 39 additions and 11 deletions
+4 -4
View File
@@ -118,7 +118,7 @@
<a
ng-show="content != null"
ng-href="{{url}}"
target="__self"
target="_self"
class="btn btn-sm"
aria-label="View raw current file"
title="View the raw content of the current file"
@@ -127,7 +127,7 @@
<a
ng-show="content != null"
ng-href="{{url}}&download=true"
target="__self"
target="_self"
class="btn btn-sm"
aria-label="Download current file"
title="Download the current file"
@@ -136,7 +136,7 @@
<a
ng-if="options.download"
ng-href="/api/repo/{{repoId}}/zip"
target="__self"
target="_self"
class="btn btn-sm"
aria-label="Download full repository as ZIP"
title="Download the full repository as a ZIP archive"
@@ -145,7 +145,7 @@
<a
ng-if="options.hasWebsite"
ng-href="/w/{{repoId}}/"
target="__self"
target="_self"
class="btn btn-sm"
aria-label="Website"
><i class="fas fa-globe"></i><span class="d-none d-md-inline"> Website</span></a
+1 -1
View File
@@ -129,7 +129,7 @@
<div class="dropdown-menu dropdown-menu-right" aria-labelledby="navbarDropdownMenuLink">
<a class="dropdown-item" href="/profile">Default settings</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item" href="/api/user/logout" target="__self"
<a class="dropdown-item" href="/api/user/logout" target="_self"
>Logout</a
>
</div>
+4 -4
View File
@@ -64,19 +64,19 @@
<div class="paper-detail-grid">
<div class="detail-label">Repository</div>
<div class="detail-value">
<a href="/r/{{repoId}}/" target="__self">/r/{{repoId}}/</a>
<a href="/r/{{repoId}}/" target="_self">/r/{{repoId}}/</a>
</div>
<div class="detail-label" ng-if="repo.options.page">GitHub Page</div>
<div class="detail-value" ng-if="repo.options.page">
<a href="/w/{{repoId}}/" target="__self">/w/{{repoId}}/</a>
<a href="/w/{{repoId}}/" target="_self">/w/{{repoId}}/</a>
</div>
</div>
<div class="anonymize-submit-bar" ng-if="repo.status == 'ready'">
<a class="btn btn-ink" href="/r/{{repoId}}/" target="__self">
<a class="btn btn-ink" href="/r/{{repoId}}/" target="_self">
<i class="far fa-eye mr-1"></i> Go to anonymized repository
</a>
<a class="btn" href="/w/{{repoId}}/" target="__self" ng-if="repo.options.page">
<a class="btn" href="/w/{{repoId}}/" target="_self" ng-if="repo.options.page">
<i class="fas fa-globe mr-1"></i> Go to anonymized GitHub page
</a>
</div>