Webview not displaying the URL

Question:
How to display the url in the webview?

Repl link:

  app.get("*", (req, res) => {
    var fullUrl = req.protocol + "://" + req.get("host") + req.originalUrl;

    if (
      fullUrl == domain ||
      fullUrl == `${domain}/style.css` ||
      fullUrl == `${domain}/style.css` ||
      fullUrl == `${domain}/favico.ico`
    ) {
      renderTemplate(res, req, "index.ejs");
    } else {
      renderTemplate(res, req, "404.ejs");
    }
  });

This is a new change to the webviews, since repl.co hosting will entirely be gone soon. Until then, you can open the page in a new tab to copy the URL.

2 Likes

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