cancel
Showing results for 
Search instead for 
Did you mean: 

Left Menu Issue

Left Menu Issue

I seem to have basic left menu challenge. I'm successfully displaying data from my catalog log, so I know my top menu is OK, and my data is OK. I'm trying to create a left menu to select the same data to display but get a funky return in the url and can't quite figure out where it's coming from.

 

My widget is set up as a CMS Static Block, as follows:

Screen Shot 2019-10-08 at 2.19.06 PM.png

And the Block is pointing to the Left Menu Block:

 

My left menu block is as follows:

 

<div class="categories-menu"><strong class="title">Diagnostic</strong>
<ul class="items">
<li class="item"><a href="{{store url=&quot;&quot;}}">Dressing Pliers</a></li>
<li class="item"><a href="{{store url=&quot;&quot;}}">Explorers</a></li>
<li class="item"><a href="{{store url=&quot;&quot;}}">Expros</a></li>
<li class="item"><a href="{{store url=&quot;&quot;}}">Mirrors</a></li>
<li class="item"><a href="{{store url=&quot;&quot;}}">Probes</a></li>
</ul>
</div>

My catalog segment is:

 

Screen Shot 2019-10-06 at 3.58.04 PM.png

 

What I get is a url that is mysite.com/%22%22/. I don't understand where the /%22%22/ is coming from when it should be something like mysite.com/diagnostic/dressing-pliers-diagnostic.html when I'm clicking on the diagnostic/dressing-pliers link.

 

Is it the way in which I'm handling my SEO? is it something else? Why does it work in the top menus but not the side menu's?

 

Thanks!

2 REPLIES 2

Re: Left Menu Issue

Hello @mike_latzky 

 

Please set
<li class="item"><a href="{{store url=&quot;&quot;}}">Dressing Pliers</a></li>
as
<li class="item"><a href="{{store url="diagnostic/dressing-pliers-diagnostic.html"}}">Dressing Pliers</a></li>

 

Do in the same pattern for all the links.

 

Hope it helps.

---
If you've found my answer useful, please give"Kudos" and "Accept as Solution"

Re: Left Menu Issue

Hi Meetanshi,

 

We're close and I really appreciate this! 

 

The editor keeps converting the " character inside the {{ into a %22 hex ascii for some reason. Not sure why unless this is default editor behavior. Otherwise, the rest of the url is created correctly, of course, and would otherwise direct the browser to the correct page/url. 

 

Not sure how to stop this auto-correction in the Block Editor so I can get the correct url creation. But, otherwise, it does create, e.g.:

 

mysite.com/%22diagnostic/dressing-pliers-diagnostic.html%22/

 

But even though I make sure the line I correct/enter into the Block Editor is:

<li class="item"><a href="{{store url="diagnostic/dressing-pliers-diagnostic.html"}}">Dressing Pliers</a></li>

It corrects it to:

<li class="item"><a href="{{store url=&quot;diagnostic/dressing-pliers-diagnostic.html&quot;}}">Dressing Pliers</a></li>

After I press the "Save" button.

 

Any ideas on how I override this?