Skip to content

Commit

Permalink
remove middleware, fix links
Browse files Browse the repository at this point in the history
  • Loading branch information
e11sy committed Jul 20, 2024
1 parent fdcd15b commit 6749622
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 14 deletions.
2 changes: 1 addition & 1 deletion components/site-header-ru.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

<a
class="site-header__logo"
href="/ru"
href="/ru/"
>
<img
src="~/assets/images/hawk-logo.png"
Expand Down
6 changes: 0 additions & 6 deletions middleware/trailingSlashRedirect.js

This file was deleted.

5 changes: 0 additions & 5 deletions nuxt.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,6 @@ export default {
* (else redirect will be treated as navigation to the current page and error will be raised)
*/
trailingSlash: false,

/**
* This middleware will redirect user if he tries to visit route with trailing slash
*/
middleware: 'trailingSlashRedirect',
},
// Target (https://go.nuxtjs.dev/config-target)
target: 'static',
Expand Down
4 changes: 2 additions & 2 deletions pages/ru.vue
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@ export default Vue.extend({
{
hid: 'og:url',
name: 'og:url',
content: 'https://hawk.so/ru'
content: 'https://hawk.so/ru/'
},
{
hid: 'og:type',
Expand Down Expand Up @@ -434,7 +434,7 @@ export default Vue.extend({
{
hid: 'twitter:url',
name: 'twitter:url',
content: 'https://hawk.so/ru'
content: 'https://hawk.so/ru/'
},
],
}
Expand Down

0 comments on commit 6749622

Please sign in to comment.