Link Doesn’t Take You Where It Should

Question:
So me and a few other community members are making an online Hackathon since Replit is doing an in person one instead. We have a link to another HTML page for submitting, but it takes you back to the original HTML page not the one it is programmed to go to.

Repl link:
https://replit.com/@SalladShooter/Fall-Hackathon-2023

index.html:

<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width">
  <title>replit</title>
  <link href="/style.css" rel="stylesheet" type="text/css" />
</head>

<body>
  <div class="body">
    <h1 class="title">Online Fall Hackathon - 2023</h1>
    <h4 class="author">By The Community</h4>
    <hr>
    <br>
    <p>&nbsp;&nbsp;&nbsp;&nbsp;This year Replit is hosting the Summer Hackathon in person. So for those who can't go or just want to do one some of us from the community decided to make our own. Sadly we wont be giving out prizes since we dont have much money to give. </p>
    <br>
    <hr>
    <br>
    <h3>The theme is</h3>
    <p>- - - - - - - - - -</p>
    <br>
    <p>How you should make it:</p>
    <ol>
      <li></li>
      <li></li>
      <li></li>
    </ol>
    <br>
    <p>The Judges:</p>
    <ol>
      <li></li>
      <li></li>
      <li></li>
    </ol>
    <br>
    <p>&nbsp;&nbsp;&nbsp;&nbsp;To submit a entry put your project link here <a href="#submission.html" target="_blank">submit here</a>. Please do not steal material from others. You can collaborate with others. You are aloud to ask for help. If you have any questions message (PM) me (@SalladShooter) on <a href="https://ask.replit.com">Replit Ask</a>. You can submit entries from Month Day to Month Day Most importantly have fun.</p>
    <br>
  </div>
  <script src="script.js"></script>
</body>
</html>

Your repl doesn’t load, but looking at your code, I would suggest changing the # to a / in your link.

@CodingCactus it says CANNOT GET /submissions.html.

Make a route for it then

@CodingCactus how would I do that?

It looks like you already have a route set up for submissions. You should just change your link to /submission instead

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.