Questions tagged [urls]

All questions related to Sitecore URL generation, configuration and its uses.

Filter by
Sorted by
Tagged with
0
votes
1answer
57 views

How to get URLS added in the Rich Text field and Link Manager Fields?

I want to redirect my urls added in the Rich Text Editor,General Links to custom urls on page load. To get the URLS which exist in the General Link field and in the Rich Text Editor, I am using the ...
0
votes
2answers
58 views

Sitecore Dynamic URLs on data driven pages

What would be the best way to handle the Dynamic URLs in Sitecore 9.1? For example, I have a Blog page and Blog details page. Blog page will have multiple blog details. When user is clicking on any ...
0
votes
0answers
58 views

In MediaManager, how to get image's full url with specifed site's domain included?

The reason why I want to change the domain of an image url is because I'm providing an API to a third party. And the regulation is all media url and internal link url, needs to replace the default ...
1
vote
1answer
139 views

Should targetHostName and hostName be the same?

In our Sitecore 9 setup we are using a CD and CM server. Currently, we have these config transformations: <sites env:require="TestCM" xdt:Transform="Insert"> <site name="website"> ...
0
votes
1answer
46 views

Sitecore how to get an ImageField full url, not a relative path?

It's an Web API project, to provide some data for third parties. var image = new MediaItem(imageField.MediaItem); string src = Sitecore.StringUtil.EnsurePrefix('/', Sitecore.Resources.Media....
3
votes
1answer
110 views

Getting an item using Powershell having only the URL

Is it possible to get a Sitecore item via Powershell script having only the public URL? Something like an overload of the Get-Item function that receives the URL would be ideal Thanks in advance
1
vote
1answer
50 views

Image hash in URL causes image to have black background in normal mode

I have a case where a PNG image appears differently in edit and preview mode versus normal mode. The normal mode image has black bars at the top and bottom of the image. The edit / preview image does ...
0
votes
1answer
467 views

Why is Display Name and the Item Name in the URL resolving to the same item

I have issue/concern where Sitecore is not returning a 404 response when the url contains the display name of the item. e.g. I have page called destination as a item name and display name as where,...
2
votes
1answer
299 views

Redirecting to Lowercase URL and removing trailing slashes for SEO

I am working on a task where I need to make sure that all the requests are served through lowercase URL's in Sitecore 8.2. I have seen few articles around getting in done through IIS rewrite but than ...
2
votes
1answer
87 views

Getting 404 error on a page when url is using item name

I keep on getting this annoying error when I'm trying to navigate to my site's page: {siteurl}/projects/name-of-project. But it is okay when: {siteurl}/projects/{item id}. Where in {item id} is the ...
-2
votes
1answer
818 views

Message: A potentially dangerous Request.Path value was detected from the client (>)

how to resolve this kind of issues? please help me > 30452 ERROR Application error. Exception: System.Web.HttpException > Message: A potentially dangerous Request.Path value was detected from > the ...
0
votes
0answers
58 views

Site config exclude relative path for few pages

I have my site definition like below: <site patch:before="site[@name='website']" name="mysite" hostName="mysite.com" scheme="https" notFoundItem="not-found" ...
1
vote
1answer
80 views

Can I include image URL options with Synthesis field rendering helpers?

I'm on Sitecore 8.2 with Synthesis 8.2.6. I'm currently using the provided helpers Field.RenderedValue and Field.Url. I'd like to request the images with specific size parameters depending on the ...
4
votes
1answer
306 views

MediaManager throwing null error

I am facing an issue while fetching the media item URL. This is my code snippet: @{ Sitecore.Data.Fields.ImageField imageItem = (Sitecore.Data.Fields.ImageField)Sitecore.Context.Item.Fields["...
3
votes
1answer
154 views

Is it possible to teach the keepalive agent to overcome TLS/SSL certificate warnings?

We have an internal environment where the TLS/SSL certificate on tenants is not playing well with some requests. This is not a huge issue for clients who can add a one time trust for the certificate, ...
3
votes
2answers
7k views

How to reload the current page with a query string parameter

I'm trying to refresh a page when clicking tag href. But I could not get the current page URI in my MVC Razor view and How I get the current page URI and how I refresh the same page? e.g.: www....
2
votes
0answers
221 views

Language specific redirects with UrlRewrite sitecore module

I've done alot of looking around but I can't seem to find the answer to an issue I am facing. Is it possible to use the UrlRewrite module from the Sitecore marketplace to perform language specific ...
7
votes
1answer
133 views

How do I allow only the configured language for each site?

I've a site in x languages and each language has its own domain and language like www.mycompany.de, www.mycompany.co.uk, www.mycompany.at, .... Currently, I can force another language - e.g. German ...
3
votes
2answers
56 views

mutated vowel in display name and don't show it in the generated url

I have a multi language site and one language is german. I need language specific urls and so I am using the display name to generate the url and to show the Page titels and linknames to the internal ...
1
vote
1answer
552 views

Sitecore Url not working - layout not found error

We have just upgraded from Sitecore 8.1 update 4 to Sitecore 9.0 update 2. Almost all the functionalities are working. We have an issue with one url. When I tried to access the URL below, I got the ...
3
votes
2answers
194 views

Unwanted Sitecore URL

I am able to access a page using the path: https://<<My Domain>>/Sitecore/content/page_path This has been crawled by Google, I don't want these URL's to be accessible. I would like to ...
5
votes
1answer
37 views

When should I use ScalableLinkProvider or ItemSearchLinkProvider?

I have noticed that the Sitecore.Buckets.LinkProviders namespace has 2 classes that extend the default LinkProvider: ScalableLinkProvider and ItemSearchLinkProvider. I cannot find any direct ...
0
votes
1answer
100 views

How to make query to form as part of base URL

I have a requirement where we need to retain a URL from a legacy system (Umbraco). The way legacy works is a search page that filters search results via query string but in the format of rest API. e....
4
votes
2answers
2k views

Why does MediaManager.GetMediaUrl() return internal “/sitecore/shell/-/media” URL instead of “~/media” URL?

I'm programatically inserting some JPGs into the Media Library with the MediaCreator and then putting URLs to those images in a Rich Text field another item (page). When I call MediaManager....
1
vote
2answers
705 views

How to avoid folder name in URL

I have site definition up to C. When accessing the properties in the URL Property page name is displayed. How to avoid it? Current Url:Http:/Sitename/en/Propert Page/PropertyName Expected URL:http:...
2
votes
1answer
351 views

Alias with query string

Using Sitecore aliases, I want to go the a page with a query string. For example I want to go to test/myOriginalPage?query=myQuery using an alias /myAlias. The only fields I could set are "Path" (...
1
vote
1answer
81 views

Can we use “useDisplayName” for items outside of the Home folder?

I have a contribution folder with items on my sitecore website. I had to manually map the displayname to the items in my HttpRequestProcessor resolvers. However, I would like to confirm there is no ...
5
votes
1answer
167 views

Does Sitecore support internationalization with Urls?

Clearly, Sitecore has great support for internationalization with built in language versions. However, one thing I have not been a fan of is that fact that all languages will have the same Url (at ...
10
votes
1answer
2k views

How to prevent Sitecore resolving the Language based on the URL

Our site is resolving some relative urls as languages, where it should be resolving items instead. e.g. mydomain.com/eu should be resolving the item EU under the home item. Instead, Sitecore is ...
7
votes
1answer
130 views

Why does my marketing URL redirect me to the site root?

[Question transposed from Slack] We are trying to create a site with a virtualFolder of /chr. When we navigate to home page in the site, the system redirects us back to the site root. We have checked ...