how to remove tab name in URL in DNN - dotnetnuke

In my DNN project the tab URL being formed is like this
http://localhost:57425/test_15sept/EN/tabid/83/ctl/Tab/action/edit/returntabid/64/Default.aspx
and i want to remove the EN from the URL, how can i do this?

You'll need a 3rd party url rewriting solution like iFinity UrlMaster (http://www.ifinity.com.au/Products/Url_Master_DNN_SEO_Urls) to do this or switch to non-friendly urls (host -> host settings). This will put your site in this format though, ?tabid=XX&param=1&param=2

Related

How do I fix a 1/2 broken DNN path?

Somehow my DNN has a broken path a particular url serves pages, but doesn't work for delete or advanced options (delivers a 404 error)
The taburls table has no entries for this tab.
If I change the url through the tabs table then I'm able to delete the page without issue.
I tried accessing the page options via tabid, but the tabid gets converted to the friendly name and then 404s.
I tried turning off friendly urls in my web.config but I may have done it wrong since the entire site would not load (yellowscreen of death)
I'm wondering where DNN is storing this path that is breaking the advanced options of whatever page is at the path.
How do I fix this url so it displays page options and lets me delete pages?
First thing I would try is going to the Admin/Page Management screen, can you make the changes you need to via that interface? If so, after making the changes, are you able to access the page and all the features/options correctly?
If that doesn't work, check the TabPath column in the TABS table to see if there are any bad paths in there for specific pages that you are having problems with.

angularjs routing works with hosting url but not custom domain

Url's with angular routes are not working when I try to access my site using my domain name. However if I use the same route with my hosting url it works fine.
This does not work (routes to main page and not specific team):
http://visualfpl.com/#/team/177221
This does work (loads team):
http://visualfpl.azurewebsites.net/#/team/177221
I've tried a couple things (forcing route.reload on app run and whitelisting the hosting site) but still having an issue.
Any suggestions? Thanks.
Your domain name site is wrapping your other site in a frame. The frame has it's own "location" or URL or whatever which doesn't have the #/team/177221 part on it, it just has "http://visualfpl.azurewebsites.net/" to start. Load the page at your domain name and "view source" to see what I mean. Also notice as you navigate around the site at your domain name, the address bar of the browser doesn't get updated. It's updating the URL of the frame the site is in.

Replace Space in DNN Friendly URLs

I'm working on a site running DNN 7, and I'm trying to format my URLs. In my web.config file I changed the format to HumanFriendly URLs like so:
<add name="iFinity.FriendlyUrl" type="iFinity.DNN.Modules.FriendlyUrl.DNNFriendlyUrlProvider,
iFinity.FriendlyUrlProvider" includePageName="true" regexMatch="[^\+a-zA-Z0-9 _-]"
urlFormat="HumanFriendly" redirectUnfriendly="true" doNotRedirect="SearchResults;"
checkForDupUrls="true" forceLowerCase="true" redirectWrongCase="false" replaceSpaceWith="-"
logCacheMessages="false" pageExtensionUsage="never" />
The rewrite is working fine, except one problem. On pages that have a space, for example we have a page titled, "Who We Are" I want the URL to be who-we-are, and the URL is generating as whoweare. What do I need to add in order to change that? I've been digging all morning and can't find anything about it.
Thank you in advance for any help, it's much appreciated!
The iFinity Friendly URL functionality has been merged into the DNN core and is no longer updated.
http://www.ifinity.com.au/2013/07/22/DNN_71_and_Url_Master
The above post explains how to transition to the new provider.
I uninstalled the iFinity controll, and then used instructions from this page to change the space character:
http://www.christoc.com/Tutorials/All-Tutorials/aid/6

How do I name a drupal page template file according to a node's url path setting?

I'm new to drupal and having trouble naming a page template file. In drupal 7, let's say I've created a basic page with the url path as:
www.example.com/my-page
When I create a custom page template file, I've been able to get the file name page--node--[nid].tpl.php to work fine. However, I have 3 different sites (localhost, development, and production) and each has a different node id for this page (because the databases aren't sync'd). I need to find a way to name the template file according to the url path. I've tried all of the following, none of which has worked:
page--my-page.tpl.php
page--my_page.tpl.php
page--node--my-page.tpl.php
page--node--my_page.tpl.php
Any suggestions?
Check out the theme developer module. With it you should be able to get a list of possible template names that are being considered.

dotnetnuke redirect

how can i redirect in dotnetnuke 5.3 + to a particular page?
DotNetNuke API is having helper methods for navigation. See DotNetNuke.Common.Globals.NavigateURL method overloads.
Depending on the various requirements, developers are using this method. for example, if you want to redirect to tab id 80 then you can simply write DotNetNuke.Common.Globals.NavigateURL(80) and it will redirect user to tab id 80
Please add more details about what you exactly want to implement so that I can point you towards some sample.
Hope this is helpful.
DotNetNuke.Common.Globals.NavigateURL() does not do a redirect, it simply creates a target URL based on the parameter you've provided.
Once you get that URL, you can either assign it to a hyperlink, or do a Response.Redirect() with it
If the included URL Rewriter doesn't do it for you, you can use Snapsis PageBlaster or the commercial iFinity Url Master Module (http://www.ifinity.com.au/Products/Url_Master_DNN_SEO_Urls). On a deeper level and if you are on IIS7, you can use the URL Rewrite function there.
Otherwise, you can try this:
Go to the page you want to redirect, page functions, settings
Find Advanced settings and then Other settings
Click the radio button "URL (Link to an external resource)" and fill the Location field
You can get TabID (Page ID) in c#/Vb.
Pass tab ID to function DotNetNuke.Common.Globals.NavigateURL(TabID)
This will return URL.

Resources