How To Create A Hyperlink To A Controller.view From Html Page

Hi there,

I am trying to create the hyperlink from a custom page to another store page. It supposed to be in a form of a button and point to controller.view via https.

For example, the code below is fully functional, it links to a page with id=52:

Go...

I am having a trouble to create a similar code but it should point to controller.view type of page.

Could someone with experience help, please.

Thanks

What is the html/smarty code you are using for your link?

For correctness, the '&' in the view&page_id should be view&page_id since that's what fn_url parses. And if you're in the customer view already, you don't need any of the options (:"C":"https:") unless your site does not use https and you are trying to force it to do so. But if this is admin code, then it is correct to do so.

Hi there,

I am trying to create the hyperlink from a custom page to another store page. It supposed to be in a form of a button and point to controller.view via https.

For example, the code below is fully functional, it links to a page with id=52:

Go...

I am having a trouble to create a similar code but it should point to controller.view type of page.

Could someone with experience help, please.

Thanks

Unfortunately, you cannot use smarty functions in the html content of cms pages.

That what I thought, thank you

But you can do it directly with the data you already have: I.e.

href="[your domain url with proper http/https]?dispatch=pages.view&page_id=52"

Or simply:

htref="?dispatch=pages.view&page_id=52"

If you have an SEO name setup for that page, you could use it as well.

But you can do it directly with the data you already have: I.e.

href="[your domain url with proper http/https]?dispatch=pages.view&page_id=52"

Or simply:

htref="?dispatch=pages.view&page_id=52"

If you have an SEO name setup for that page, you could use it as well.

I think, he wants to find universal solution so that the link would be independent of the SEO addons status