Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hey guys,
I've done some research on how to shorten URL's in Umbraco 7 but without much luck.
I have some really long URL's like this one:
www.domain.com/produkter/cykler/mountain-bikes/specialized/demo
I would like to set up some rules that says:
IF you are on Document Type: productPage then change URL from:
/produkter/cykler/mountain-bikes/specialized/epic-fsr/
To
/mountain-bikes/specialized/epic-fsr
EDIT - SOLUTION:
I ended up using VirtualNodes instead, which worked
Hi Mike, take a look at this package: https://our.umbraco.org/projects/developer-tools/routing/
If you're looking for a more custom solution, the Request Pipeline is what you'll want to look into: https://our.umbraco.org/documentation/reference/routing/Request-Pipeline/
Hope this helps,
Amir
Hey Amir!
I installed the Routing plugin but from what I can understand, the plugin only "redirects" you if you are on a specific Url Segment.
Like, If I'm on
/produkter/cykler/racercykler/
I could redirect to the frontpage but keep the URL intact, isn't that correct?
I'm looking to remove a part of the URL so that this:
/produkter/cykler/mountain-bikes/specialized/
Becomes this:
/mountain-bikes/specialized/
Here's another package on top of Amir's recommendation: https://our.umbraco.org/projects/backoffice-extensions/omit-segments-url-provider/
Hey Nicholas,
Thank you for your reply.
Reading the plugins description, it seems to be the right solution. Although, I'm not sure if it works with Umbraco 7.5.6.
An example Adding a line to the Web.config file (in the appSettings) like this one does nothing:
<add key="omiturlsegments:brandPage" value="enduro"/>
If I'm on productPage I'd like to remove productBrandModel
I think the value you specified is incorrect (it seems you specified a node name rather than a document type alias). Instead, I think you want this:
<add key="omiturlsegments:brandPage" value="productBrandModel"/>
That should exclude the "enduro" segment of the URL.
I must be missing something because it makes no difference... I'll try a few things and see if I can get it to work.
Edit:
I installed the authors other plugin: VirtualNodes which did the trick!
Installed the plugin and used:
<add key="virtualnode" value="productSection, productType" />
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Shorten URL's
Hey guys,
I've done some research on how to shorten URL's in Umbraco 7 but without much luck.
I have some really long URL's like this one:
www.domain.com/produkter/cykler/mountain-bikes/specialized/demo
I would like to set up some rules that says:
IF you are on Document Type: productPage then change URL from:
To
EDIT - SOLUTION:
I ended up using VirtualNodes instead, which worked
Hi Mike, take a look at this package: https://our.umbraco.org/projects/developer-tools/routing/
If you're looking for a more custom solution, the Request Pipeline is what you'll want to look into: https://our.umbraco.org/documentation/reference/routing/Request-Pipeline/
Hope this helps,
Amir
Hey Amir!
I installed the Routing plugin but from what I can understand, the plugin only "redirects" you if you are on a specific Url Segment.
Like, If I'm on
I could redirect to the frontpage but keep the URL intact, isn't that correct?
I'm looking to remove a part of the URL so that this:
Becomes this:
Here's another package on top of Amir's recommendation: https://our.umbraco.org/projects/backoffice-extensions/omit-segments-url-provider/
Hey Nicholas,
Thank you for your reply.
Reading the plugins description, it seems to be the right solution. Although, I'm not sure if it works with Umbraco 7.5.6.
An example Adding a line to the Web.config file (in the appSettings) like this one does nothing:
If I'm on productPage I'd like to remove productBrandModel
I think the value you specified is incorrect (it seems you specified a node name rather than a document type alias). Instead, I think you want this:
That should exclude the "enduro" segment of the URL.
I must be missing something because it makes no difference... I'll try a few things and see if I can get it to work.
Edit:
I installed the authors other plugin: VirtualNodes which did the trick!
Installed the plugin and used:
is working on a reply...