Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

href error to myFile.js #109

Open
1 task
ffiesta opened this issue Feb 26, 2024 · 0 comments
Open
1 task

href error to myFile.js #109

ffiesta opened this issue Feb 26, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@ffiesta
Copy link
Contributor

ffiesta commented Feb 26, 2024

Describe your issue

Add href <a href="myFile.js" download>Click to Download myFileJS</a> to non-existent file on page, and click on url wikidocs download a myFile.js file with next content

<!DOCTYPE html>
<html lang="en">
<head>
	<link type="text/css" rel="stylesheet" href="/wiki/helpers/materialize-1.0.0/css/materialize.min.css" media="screen,projection"/>
	<link type="text/css" rel="stylesheet" href="/wiki/helpers/material-icons-1.13.6/css/material-icons.css" media="screen,projection"/>
	<link type="text/css" rel="stylesheet" href="/wiki/helpers/font-awesome-4.7.0/css/font-awesome.min.css" media="screen,projection"/>
	<link type="text/css" rel="stylesheet" href="/wiki/helpers/easymde-2.16.1/css/easymde.min.css" media="screen,projection"/>
	<link type="text/css" rel="stylesheet" href="/wiki/helpers/highlightjs-11.7.0/css/default.min.css" media="screen,projection">
	<link type="text/css" rel="stylesheet" href="/wiki/helpers/katex-0.16.7/css/katex.min.css" media="screen,projection">
	<link type="text/css" rel="stylesheet" href="/wiki/styles/styles.css" media="screen,projection"/>
	<link type="text/css" rel="stylesheet" href="/wiki/styles/styles-light.css" media="screen,projection"/>
    	<link type="image/ico" rel="icon" href="/wiki/favicon.ico" sizes="any"/>
	<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
	<meta name="theme-color" content="#4CAF50">
	<style>:root{--theme-color:#4CAF50;}</style>
	<title>Myfile.js - Domain|Docs</title>
	</head>
<body>
<header>
	<ul id="nav-mobile" class="sidenav sidenav-fixed">
		<li class="logo">
			<a id="logo-container" href="/wiki/" class="brand-logo">
				<h1>Domain|Docs</h1>
				<span><em>Domain markdown wiki engine</em></span>
			</a>
		</li>
		<li class="search">
			<div class="search-wrapper">
				<form action="/wiki/" method="get" autocomplete="off">
					<input id="search" name="search" placeholder="Search in wiki.." value=""><i class="material-icons">search</i>
				</form>
			</div>
		</li>
		<li class="index"><a class="waves-effect waves-light" href="/wiki/contacto">Contacto</a></li>
<li class="index"><a class="waves-effect waves-light" href="/wiki/matriz">Matriz</a></li>
	</ul>
	<div class="sidebar-footer"> <!-- @todo migliorare -->
		<div id="sidebar-footer-content">
			<span class="default-title">Utilizador Admin</span><br>
			<span class="default-description">Copyright © All rights reserved</span>
		</div>
	</div>
</header>
<main>
	<div class="container">
		<div class="row breadcrumbs" style="padding-top:18px">
			<div class="col s2 m1 offset-m1 hide-on-large-only">
				<a class="btn btn-floating btn-small tooltipped waves-effect waves-light sidenav-trigger main-color" href="#" data-target="nav-mobile" data-position="bottom" data-tooltip="Sidebar"><i class="material-icons">menu</i></a>
			</div><!-- /col -->
			<div class="col s8 m7 l8 offset-l1 center-on-small-only" style="padding-top:3px">
      <span>
        <a href="/wiki/homepage" class="main-color-text nowrap">homepage</a> / <a href="/wiki/homepage/temp" class="main-color-text nowrap">temp</a> / <span class="nowrap">myfile.js</span>      </span>
			</div><!-- /col -->
			<div class="col s2 m2 l2">
									<span class="right nowrap">
            <a class="btn btn-floating btn-small tooltipped waves-effect waves-light main-color" href="https://domain.pt/wiki/homepage/temp/myfile.js?print" target="_blank" data-position="bottom" data-tooltip="Print this document"><i class="material-icons">print</i></a>
            							<a class="btn btn-floating btn-small tooltipped waves-effect waves-light main-color" href="/wiki/settings.php" data-position="bottom" data-tooltip="Settings"><i class="material-icons">settings</i></a>
							<a class="btn btn-floating btn-small tooltipped waves-effect waves-light main-color" href="#" data-position="bottom" data-tooltip="Add new document" onClick="new_document();"><i class="material-icons">add_circle</i></a>
							<a class="btn btn-floating btn-small tooltipped waves-effect waves-light main-color" href="https://domain.pt/wiki/homepage/temp/myfile.js?edit" data-position="bottom" data-tooltip="Edit document"><i class="material-icons">border_color</i></a>
													          </span>
											</div><!-- /col -->
		</div><!-- /row -->
		<div class="divider"></div>
		<div class="row">
			<div class="col s12 m10 offset-m1">
									<article>
						
<h1 id="error-404" title='#error-404'><a href='#error-404'></a>Error 404</h1>
<p>We are sorry but the page you are looking for does not exist.</p>
<p>Click the edit button to create this page!</p>
					</article>
																							</div><!-- /col -->
		</div><!-- /row -->
		<div class="divider"></div>
		<div class="row">
			<div class="col m5 offset-m1 hide-on-med-and-down">
				<p class="left-align"><small>This page was last edited on </small></p>
			</div><!-- /col -->
			<div class="col m5 hide-on-med-and-down">
				<p class="right-align"><small>Powered by <a href="https://github.com/Zavy86/WikiDocs" target="_blank">Wiki|Docs</a> - <a href="https://domain.pt/wiki/homepage/temp/myfile.js?exit">Logout</a></small></p>
			</div><!-- /col -->
			<div class="col s12 hide-on-large-only">
				<p class="center-align"><small>This page was last edited on </small></p>
				<p class="center-align"><small><b>Utilizador Admin</b><br>Copyright © All rights reserved</p></small></p>
				<p class="center-align"><small>Powered by <a href="https://github.com/Zavy86/WikiDocs" target="_blank">Wiki|Docs</a> - <a href="https://domain.pt/wiki/homepage/temp/myfile.js?exit">Logout</a></small></p>
			</div><!-- /col -->
		</div><!-- /row -->
					</div><!-- /container -->
</main>
<script>var APP={"DEBUG":false,"VERSION":"1.0.17","HOST":"https:\/\/domain.pt","ROOT":"\/home\/pmtpt1\/public_html","PATH":"\/wiki\/","URL":"https:\/\/domain.pt\/wiki\/","DIR":"\/home\/pmtpt1\/public_html\/wiki\/","TITLE":"domain|Docs","SUBTITLE":"domain markdown wiki engine","OWNER":"Utilizador Admin","NOTICE":"Copyright \u00a9 All rights reserved","COLOR":"#4CAF50","DARK":false,"AUTHENTICATED":true,"MODE":"view"};</script>
<script>var DOC={"ID":"homepage\/temp\/myfile.js","PATH":"\/wiki\/datasets\/documents\/homepage\/temp\/myfile.js","URL":"https:\/\/domain.pt\/wiki\/homepage\/temp\/myfile.js","DIR":"\/home\/pmtpt1\/public_html\/wiki\/datasets\/documents\/homepage\/temp\/myfile.js\/","TITLE":"Myfile.js","VERSION":"latest","FILE":null,"TIMESTAMP":null};</script>
<script src="/wiki/helpers/jquery-3.7.0/js/jquery.min.js"></script>
<script src="/wiki/helpers/materialize-1.0.0/js/materialize.min.js"></script>
<script src="/wiki/helpers/highlightjs-11.7.0/js/highlight.min.js"></script>
<script src="/wiki/helpers/katex-0.16.7/js/katex.min.js"></script>
<script src="/wiki/helpers/katex-0.16.7/js/auto-render.js"></script>
<script>renderMathInElement(document.body);</script>
<script>hljs.initHighlightingOnLoad();</script>
<script src="/wiki/helpers/mermaid-9.4.3/mermaid.min.js"></script>
<script>mermaid.initialize({ startOnLoad: true,'theme': 'neutral'});</script>
<script src="/wiki/scripts/initializations.js"></script>
<script>
  function new_document(){
    var new_path=prompt("Enter the new document path (like argument/section/title)",DOC.ID+"/");
    if(new_path!==DOC.ID+"/"){
      new_path=new_path.replace(" ","-").toLowerCase()+"?edit";
      window.location.href=APP.URL+new_path;
    }
  }
</script>
</body>
</html>

I change de root domain

Device and settings

Google chrome, and android chrome

Steps to reproduce

  1. Create or open page
  2. Add <a href="myFile.js" download>Click to Download myFileJS</a> to non-existent file
  3. Save page
  4. Click on previous href created
  5. Browser ask to download Accept
  6. Open previous file received

Screenshots (optional)

image

Extra fields

  • I'd like to work on this issue
@ffiesta ffiesta added the bug Something isn't working label Feb 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant