How to fix the sub-site in SharePoint 2013?

Dear EE experts,

We would like to ask on how to fix the sub-site in our SharePoint, we created a new sub-site and we add an embedded code (HTML script) into the main part of the site (center).
However, every time we access the site: http://our-server:2018/products/productSKU , it'll go or redirect to this site: http://our-server:2018/products/productSKU/_layouts/15/start.aspx#/ (please see the attached screenshot PRODUCTSKU_05.JPG), it will stop there and will not go to its normal look (please see the attached screenshot PRODUCTSKU_06.JPG). Then now, even we type it directly or check every link, which is correct, the screenshot from PRODUCTSKU_05.JPG appears.

We have no forgotten CSS &/or JS files, as it is located from jquery site. And we add some CSS manually...

I'm attaching the code here:
Yesterday, it was working smoothly, within sharepoint, but this morning, we have no idea what went wrong why it result differently.
<!doctype html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>Product SKU</title>
  <link rel="stylesheet" href="//code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css">
  <link rel="stylesheet" href="/resources/demos/style.css">

	
  	<style>
	  .ui-state-active,
.ui-widget-content .ui-state-active,
.ui-widget-header .ui-state-active,
a.ui-button:active,
.ui-button:active,
.ui-button.ui-state-active:hover 
	{
		border: 0px solid #949292;
		background: #999999;
		font-weight: normal;
		color: #ffffff;
	}
	</style>
  <script src="https://code.jquery.com/jquery-1.12.4.js"></script>
  <script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
  <script>
  $( function() {
    $( "#menu" ).menu();
  } );
  </script>
  <style>
  .ui-menu { width: 300px; }
  </style>
</head>
<body>
 
<ul id="menu">
  <li class="ui-state-disabled"><div>Product Type</div></li>
	<li><div>Shower Unit</div>
    	<ul>
      		<li><div>AQ</div>
        		<ul>
					<a href="http://www.stiebeleltronasia.com" target="_blank"><li><div>Packaging Box</div></li></a>
					<li><div><a href="#">Product</a></div></li>
					<li><div><a href="#">Product Information</a></div></li>
				</ul>
			  </li>
			  <li><div>IL</div>
				<ul>
				  <li><div>Packaging Box</div></li>
          			<li><div>Product</div></li>
		  			<li><div>Product Information</div></li>
				</ul>
			  </li>
		  	  <li><div>IS</div>
			  	<ul>
				  <li><div>Packaging Box</div></li>
          			<li><div>Product</div></li>
		  			<li><div>Product Information</div></li>
				</ul>			
			  </li>
		  	  <li><div>IJ</div>
			  	<ul>
				  <li><div>Packaging Box</div></li>
          			<li><div>Product</div></li>
		  			<li><div>Product Information</div></li>
				</ul>			
			  </li>
		  	  <li><div>IP</div>
			  	<ul>
				  <li><div>Packaging Box</div></li>
          			<li><div>Product</div></li>
		  			<li><div>Product Information</div></li>
				</ul>			
			  </li>
		  	  <li><div>DX</div>
			  	<ul>
				  <li><div>Packaging Box</div></li>
          			<li><div>Product</div></li>
		  			<li><div>Product Information</div></li>
				</ul>			
			  </li>
		  	  <li><div>DX H2OT</div>
			  	<ul>
				  <li><div>Packaging Box</div></li>
          			<li><div>Product</div></li>
		  			<li><div>Product Information</div></li>
				</ul>			
			  </li>
		  	  <li><div>DS</div>
			  	<ul>
				  <li><div>Packaging Box</div></li>
          			<li><div>Product</div></li>
		  			<li><div>Product Information</div></li>
				</ul>			
			  </li>
		  	  <li><div>WL</div>
			  	<ul>
				  <li><div>Packaging Box</div></li>
          			<li><div>Product</div></li>
		  			<li><div>Product Information</div></li>
				</ul>			
			  </li>
		  	  <li><div>WS</div>
			  	<ul>
				  <li><div>Packaging Box</div></li>
          			<li><div>Product</div></li>
		  			<li><div>Product Information</div></li>
				</ul>			
			  </li>
		  	  <li><div>Stiebel Steel</div>
			  	<ul>
				  <li><div>Packaging Box</div></li>
          			<li><div>Product</div></li>
		  			<li><div>Product Information</div></li>
				</ul>			
			  </li>
		  	  <li><div>Stiebel Chrome</div>
			  	<ul>
				  <li><div>Packaging Box</div></li>
          			<li><div>Product</div></li>
		  			<li><div>Product Information</div></li>
				</ul>			
			  </li>
		  	  <li><div>XG</div>
			  	<ul>
				  <li><div>Packaging Box</div></li>
          			<li><div>Product</div></li>
		  			<li><div>Product Information</div></li>
				</ul>			
			  </li>
		  	  <li><div>XG Limited</div>
			  	<ul>
				  <li><div>Packaging Box</div></li>
          			<li><div>Product</div></li>
		  			<li><div>Product Information</div></li>
				</ul>			
			  </li>
		  	  <li><div>XGL</div>
			  	<ul>
				  <li><div>Packaging Box</div></li>
          			<li><div>Product</div></li>
		  			<li><div>Product Information</div></li>
				</ul>			
			  </li>
		</ul>
	</li>
	
	<li><div>Multi Point Unit</div>
    	<ul>
      		<li><div>DDH</div>
        		<ul>
          			<li><div>Packaging Box</div></li>
          			<li><div>Product</div></li>
		  			<li><div>Product Information</div></li>
				</ul>
			  </li>
			  <li><div>DHC_EC</div>
				<ul>
				  <li><div>Packaging Box</div></li>
          			<li><div>Product</div></li>
		  			<li><div>Product Information</div></li>
				</ul>
			  </li>
		  	  <li><div>DHC_XG</div>
			  	<ul>
				  <li><div>Packaging Box</div></li>
          			<li><div>Product</div></li>
		  			<li><div>Product Information</div></li>
				</ul>			
			  </li>
		  	  <li><div>DHD</div>
			  	<ul>
				  <li><div>Packaging Box</div></li>
          			<li><div>Product</div></li>
		  			<li><div>Product Information</div></li>
				</ul>			
			  </li>
		  	  <li><div>DHM</div>
			  	<ul>
				  <li><div>Packaging Box</div></li>
          			<li><div>Product</div></li>
		  			<li><div>Product Information</div></li>
				</ul>			
			  </li>
		  	  <li><div>DMT</div>
			  	<ul>
				  <li><div>Packaging Box</div></li>
          			<li><div>Product</div></li>
		  			<li><div>Product Information</div></li>
				</ul>			
			  </li>
		  	  <li><div>IM</div>
			  	<ul>
				  <li><div>Packaging Box</div></li>
          			<li><div>Product</div></li>
		  			<li><div>Product Information</div></li>
				</ul>			
			  </li>
		  	  <li><div>Simple X</div>
			  	<ul>
				  <li><div>Packaging Box</div></li>
          			<li><div>Product</div></li>
		  			<li><div>Product Information</div></li>
				</ul>			
			  </li>
		</ul>
	</li>

	<li><div>Water Filter Unit</div>
    	<ul>
      		<li><div>Fountain</div>
        		<ul>
          			<li><div>Packaging Box</div></li>
          			<li><div>Product</div></li>
		  			<li><div>Product Information</div></li>
				</ul>
			  </li>
			  <li><div>Fountain 7S</div>
				<ul>
				  <li><div>Packaging Box</div></li>
          			<li><div>Product</div></li>
		  			<li><div>Product Information</div></li>
				</ul>
			  </li>
		  	  <li><div>Rain Plus</div>
			  	<ul>
				  <li><div>Packaging Box</div></li>
          			<li><div>Product</div></li>
		  			<li><div>Product Information</div></li>
				</ul>			
			  </li>
		  	  <li><div>Stream</div>
			  	<ul>
				  <li><div>Packaging Box</div></li>
          			<li><div>Product</div></li>
		  			<li><div>Product Information</div></li>
				</ul>			
			  </li>
		  	  <li><div>Stream 5S</div>
			  	<ul>
				  <li><div>Packaging Box</div></li>
          			<li><div>Product</div></li>
		  			<li><div>Product Information</div></li>
				</ul>			
			  </li>
		  	  <li><div>Nature</div>
			  	<ul>
				  <li><div>Packaging Box</div></li>
          			<li><div>Product</div></li>
		  			<li><div>Product Information</div></li>
				</ul>			
			  </li>
		  	  <li><div>Stiebel House</div>
			  	<ul>
				  <li><div>Packaging Box</div></li>
          			<li><div>Product</div></li>
		  			<li><div>Product Information</div></li>
				</ul>			
			  </li>
		  	  <li><div>RO</div>
			  	<ul>
				  <li><div>Packaging Box</div></li>
          			<li><div>Product</div></li>
		  			<li><div>Product Information</div></li>
				</ul>			
			  </li>
			  <li><div>Filter</div>
			  	<ul>
				  <li><div>Packaging Box</div></li>
          			<li><div>Product</div></li>
		  			<li><div>Product Information</div></li>
				</ul>			
			  </li>
		</ul>
	</li>
	
	<li><div>Electronic Hand Dryer Unit</div>
    	<ul>
      		<li><div>HTE4</div>
        		<ul>
          			<li><div>Packaging Box</div></li>
          			<li><div>Product</div></li>
		  			<li><div>Product Information</div></li>
				</ul>
			  </li>
		</ul>
	</li>
	
	<li><div>Storage Unit</div>
    	<ul>
      		<li><div>EHS</div>
        		<ul>
          			<li><div>Packaging Box</div></li>
          			<li><div>Product</div></li>
		  			<li><div>Product Information</div></li>
				</ul>
			</li>
			  <li><div>EVS</div>
				<ul>
				  <li><div>Packaging Box</div></li>
          			<li><div>Product</div></li>
		  			<li><div>Product Information</div></li>
				</ul>
			  </li>
		</ul>
	</li>
	
	<li><div>Import Product</div>
    	<ul>
      		<li><div>DHB</div>
        		<ul>
          			<li><div>Packaging Box</div></li>
          			<li><div>Product</div></li>
		  			<li><div>Product Information</div></li>
				</ul>
			</li>
			<li><div>DHF</div>
				<ul>
				  <li><div>Packaging Box</div></li>
          			<li><div>Product</div></li>
		  			<li><div>Product Information</div></li>
				</ul>
			</li>
			<li><div>DHE</div>
				<ul>
				  <li><div>Packaging Box</div></li>
          			<li><div>Product</div></li>
		  			<li><div>Product Information</div></li>
				</ul>
			</li>
			
		</ul>
	</li>
	
	<li><div>Stiebel Pump</div>
    	<ul>
      		<li><div>HP 160S</div>
        		<ul>
          			<li><div>Packaging Box</div></li>
          			<li><div>Product</div></li>
		  			<li><div>Product Information</div></li>
				</ul>
			</li>
			<li><div>HP 210S</div>
				<ul>
				  <li><div>Packaging Box</div></li>
          			<li><div>Product</div></li>
		  			<li><div>Product Information</div></li>
				</ul>
			</li>
			<li><div>HP 310S</div>
				<ul>
				  <li><div>Packaging Box</div></li>
          			<li><div>Product</div></li>
		  			<li><div>Product Information</div></li>
				</ul>
			</li>
			<li><div>HP 430S</div>
				<ul>
				  <li><div>Packaging Box</div></li>
          			<li><div>Product</div></li>
		  			<li><div>Product Information</div></li>
				</ul>
			</li>
			
		</ul>
	</li>
	
	<li><div>Heat Pump</div>
    	<ul>
      		<li><div>WPL 23</div>
        		<ul>
          			<li><div>Packaging Box</div></li>
          			<li><div>Product</div></li>
		  			<li><div>Product Information</div></li>
				</ul>
			</li>
			<li><div>WPW 22</div>
				<ul>
				  <li><div>Packaging Box</div></li>
          			<li><div>Product</div></li>
		  			<li><div>Product Information</div></li>
				</ul>
			</li>
			<li><div>WWK 300</div>
				<ul>
				  <li><div>Packaging Box</div></li>
          			<li><div>Product</div></li>
		  			<li><div>Product Information</div></li>
				</ul>
			</li>
			<li><div>WWK 302 H</div>
				<ul>
				  <li><div>Packaging Box</div></li>
          			<li><div>Product</div></li>
		  			<li><div>Product Information</div></li>
				</ul>
			</li>
			
		</ul>
	</li>
	
</ul>
 
 
</body>
</html>

Open in new window


Thank you and hope to hear soon...
ProductSKU_05.JPG
ProductSKU_06.JPG
Stiebel EltronAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

BembiCEOCommented:
Hello,

that sharepoint calls the start.aspx is normal to call the default site. But it looks like in cannot complete the request and therefore hangs inside the page.

What I see is, that the expected view is collapsed and the faulty view is expanded. I picture is not long enough to see, if all items are there or if it stops somewhere - I cannot see, if all of the first level items are there...

My assumption is (especially if it works one time, another time not), that the jquery implementation makes trouble. It is possible that the page can not load all items from the external source, or that the query behind the jquery time out.

I would inspect the ULS logs to find out, what is going on. If there are errors in executing the page with the jquery content, you should see something in the ULS logs.

But beside this, I would never link to external resources within sharepoint. You refer to jquery code as well as css files, so you never can be sure, if they do not change something. Or the loading just take too much time, because the external server has problems. You should better download them, store them on the sharepoint and refer to the local location. Only this way you can be sure, that the code and css are stable.
0
Stiebel EltronAuthor Commented:
Hi there Bembi!
Thank you for the reply...

Ok, we found out that the sharepoint delete some of the script inside that HTML file, like the <HTML></HTML>, here are the part that has been deleted automatically:
<!doctype html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>Product SKU</title>
  <link rel="stylesheet" href="//code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css"> 

Open in new window


So we try to follow what it wants, to remove some script from it. And we downloaded the CSS & JS files to our local server and link it from there. But it's still the same result... :(
Actually, we have other page which is running and have a JS file that is located on the same location where we saved the JS & CSS files, it's running smoothly, without any problem... That's why we're thinking what's the problem with the script of our current page that we linked to our sharepoint...

However, when we click the "Edit" on the upper right of the site, the appearance or look of the site is normal... It's working normally, but when we click the "Save", then returns back to its abnormal mode. Lol :(

* We use Insert Embed Code to paste the scripts...

Hope to hear again soon...
0
BembiCEOCommented:
The best option is always to have a look at the page with SharePoint designer.
If you embed code via the user interface (SharePoint --> Edit Site - HTML function or SharePoint --> Edit Site - Edit Source), it is only a part of the site as SharePoint uses a template framework to create the site frame which already contains the usual headers and footers, the menu structure and much more... So the HTML code you place inside the page from the user interface is only the half of the truth and is place somewhere in the middle of the SharePoint framework...

Also note, just as a remark, that the content you see, if you select View  - Source in Internet Explorer is the result of the page, not the source....

So, I tested a bit....

I created a new subsite with a new and empty site page...,

I used edit source...., used your code...
Result is that the heads and footers are stripped out and the page shows wrong...
--> This method places the code directly into the page...

I used "Embed Code",
--> This method placed the code into a webpart....
the preview looks wrong, after insert it looks OK...
After saving is looks OK too...

I made the same with the default site (which is home.asx and stored in the site pages library)...
Opened the site, Edit
Deleted all the content...
Embed code in the first page range....added your code...
Looks wrong in the preview....
Looks fine after insert...
Looks wrong after saving....

So I compared both sites (home.asx and my new page) in SharePoint Designer and compared the code...
And have seen, that the default page has a two column layout with header while the newly created page has a one column layout....

I opened the home.asp page in SharePoint again, deleted everything with the exception of the part with the embedded code and selected "Text Layout - One Column"
After saving, both pages are looking fine....

So I guess this is possibly the point. As jquery creates its own page layout, it may conflict with the default SharePoint "two column with header" layout for the home.asp page (which is the default start page for new sites)....

So you may try to change the page layout of your existing page or you create a new empty page, place the code there and make is the default page.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Stiebel EltronAuthor Commented:
Even though we're not yet done with it, we would like to reward you the points already, will just follow your advise. Or we'll open a new thread if still have problem... :)

Thank you!
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Development

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.