Skip to content

Commit

Permalink
Move redirects to new wiki
Browse files Browse the repository at this point in the history
  • Loading branch information
henrikhorluck committed Aug 28, 2024
1 parent f1d2f62 commit 7481300
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 5 deletions.
14 changes: 12 additions & 2 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,18 @@ const redirects = async () => {
permanent: true,
},
{
source: '/wiki/:path*',
destination: 'https://old.online.ntnu.no/wiki/:path*',
source: '/wiki/',
destination: 'https://wiki.online.ntnu.no/',
permanent: true,
},
{
source: '/wiki/online/:path*',
destination: 'https://wiki.online.ntnu.no/:path*',
permanent: true,
},
{
source: '/wiki/komiteer/:path*',
destination: 'https://old.online.ntnu.no/wiki/komiteer/:path*',
permanent: true,
},
];
Expand Down
2 changes: 1 addition & 1 deletion src/core/components/Header/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class Header extends Component<{}, IState> {
<Link {...appUrls.getHobbyGroupsUrl()}>
<a>Interessegrupper</a>
</Link>
<a href={`${DOMAIN}/wiki/`}>Wiki</a>
<a href={'https://wiki.online.ntnu.no'}>Wiki</a>
<a href={`${DOMAIN}/webshop/`}>Webshop</a>
</div>
<HeaderLogin menuIsOpen={isOpen} closeMenu={this.closeMenu} />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const AprilFoolsStage1 = ({ nextStage }: { nextStage: () => void }) => {
/>
)}
<p>Jeg er ikke en robot</p>
<img src="https://old.online.ntnu.no/wiki/70/plugin/attachments/download/680/" alt="Online linjeforening" />
<img src="https://wiki.online.ntnu.no/attachments/680-Online_bla_o.png" alt="Online linjeforening" />
</div>
</>
);
Expand Down
2 changes: 1 addition & 1 deletion src/hobbygroups/components/Intro.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const introText = `
Du kan søke om økonomisk støtte til din interessegruppe ved å sende en mail til <[email protected]>
Mer informasjon om hvordan dette gjøres finnes
[her](https://online.ntnu.no/wiki/online/info/innsikt-og-interface/interessegrupper/).
[her](https://wiki.online.ntnu.no/info/innsikt-og-interface/interessegrupper/).
`;

const Intro = () => (
Expand Down

0 comments on commit 7481300

Please sign in to comment.